






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
CS 159 Exam 2 with Questions and Answers An infinite loop is a logical error ANSWER True The only way to stop a program caught in an infinite loop is to shut down your terminal software ANSWER False A nested loop is a repetitive process contained inside of another repetitive process ANSWER True One approach to potentially make solving problems that require nested loops easier is to separate each repetitive process into its own function ANSWER True According to the course standards a for loop should only be used with counter-controlled processes ANSWER True According to the course standards if all three expressions are not needed in a for loop then you should instead make use of a while loop for your pretest looping needs ANSWER True All while loops can be converted into for loops that abide by course standards ANSWER False You can make of x++, x+=1, and x =x+1, interchangeably as the update (third) expression for a for loop to increment the loop control variable ANSWER True
Typology: Exams
1 / 10
This page cannot be seen from the preview
Don't miss anything!