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

Verified
Correct Answer:
Verified
Q22: The statement,when executed in a while loop,skips
Q23: A common logic error known as a(n)occurs
Q24: The first line of the for statement
Q25: A while statement automatically increments a variable
Q26: Which of the following statements is false<br>A)
Q28: The initialization expression,condition and increment expression in
Q29: The do…while repetition statement tests the condition
Q30: Assuming a is a bool with a
Q31: Consider the code segment below.<br>If (gender ==
Q32: The second operand of an && operator