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

b) 3) and 4)

Computer Science & Information Technology

You might also like to view...

Which of the following is an example of a DCE?

A. Router B. Modem C. Hub D. All of the above

Computer Science & Information Technology

A class can have more than one default constructor.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology