Multiple Choice
Which of the following for-loop control headers results in equivalent numbers of iterations:
a) for ( int q = 1;q <= 100;q++ )
b) for ( int q = 100;q >= 0;q-- )
c) for ( int q = 99;q > 0;q -= 9 )
d) for ( int q = 990;q > 0;q -= 90 )
A) A and B.
B) C and D.
C) A and B have equivalent iterations and C and D have equivalent iterations.
D) None of the loops have equivalent iterations.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following will not help
Q2: Which of the following statements about the
Q3: Consider the following two Java code segments:
Q6: The control variable of a counter-controlled loop
Q11: Which case of the following would warrant
Q16: Consider the code segment below. if (
Q17: Which expression is equivalent to if (!(grade
Q21: Suppose variable gender is MALE and age
Q23: For the code segment below: switch( q
Q26: Which of the following will count down