Solved

Which of the Following For-Loop Headers Results in Equivalent Numbers

Question 10

Multiple Choice

Which of the following for-loop 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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions