Loops Question Preview (ID: 12122)


Loops In Programming Languages. TEACHERS: click here for quick copy question ID numbers.

Which kind of loop will iterate at least once and then possibly for ever?
a) do - while
b) if
c) for
d) while

Which of the following is a post test loop?
a) do-while
b) if
c) for
d) while

Which of the following is a pre-test loop
a) do - while
b) if
c) for
d) while

Which of the following is a loop that may never iterate?
a) do - while
b) if
c) for
d) while

Which of the following is a set-test loop?
a) do - while
b) if
c) for
d) while

Which of the following would you use if you can calculate how many times the loop should iterate?
a) do - while
b) if
c) for
d) while

Which of the following is NOT a loop?
a) do-while
b) if
c) for
d) while

In a for loop, the amount that you increment the index value is called a
a) step-value
b) fracture
c) conditional
d) index

In a for loop, the variable that counts or keeps track of how many times the loop is iterated is called the
a) index
b) scope
c) step-value
d) conditional

What is an infinite loop?
a) A loop where the conditional is never changed to false
b) A loop where the conditional starts at false
c) A loop that never iterates
d) A loop that iterates only once

Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 12122 in the upper right hand corner or click here.

TEACHERS / EDUCATORS
Log In
| Sign Up / Register