When the number of repetitions are known in advance, you should use a ___________ statement.

(a) while
(b) do…while
(c) for
(d) None of the above


(c) for

Computer Science & Information Technology

You might also like to view...

Which of the following is not true regarding the question-and-answer portion of your presentation?

A) As an audience member asks a question, make eye contact and listen to the full question. B) It is acceptable to end your presentation with "Are there any questions?" C) Make the assumption that people in the audience will have questions. D) Be honest and sincere in your reply, and try to involve the whole audience with your response.

Computer Science & Information Technology

In the Visual Studio IDE, the ____ identifies the window or application open in the window.

A. title bar B. menu bar C. index bar D. property

Computer Science & Information Technology

A data file is what type of file when each record is read in order of its position in the file?

A. sequential access file B. random access file C. dynamic read file D. temporary buffer file

Computer Science & Information Technology

Which of the following will count down from 10 to 1 correctly?

a) for (int j = 10; j <= 1; ++j) b) for (int j = 1; j <= 10; ++j) c) for (int j = 10; j > 1; --j) d) for (int j = 10; j >= 1; --j)

Computer Science & Information Technology