Solved

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

Question 27

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:

verifed

Verified

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

Related Questions