Which of the following loops prints "Happy Birthday!" 10 times?

A. For count = 0 To 10
   Display "Happy Birthday!"
End For
B. For count = 1 To 10
   Display "Happy Birthday!"
End For
C. While count = 1 To 10
   Display "Happy Birthday!"
End While
D. Do While count = 1 To 10
   Display "Happy Birthday!"
End While


Answer: B

Computer Science & Information Technology

You might also like to view...

The ________ identifies the data series

A) row titles B) vertical axis C) horizontal axis D) legend

Computer Science & Information Technology

Label filters such as "Does Not Equal" can be applied to a PivotTable

Indicate whether the statement is true or false

Computer Science & Information Technology

The clear sheets that were used for drawing each frame of animation have been replaced today by:

a. acetate or plastic b. titanium c. fiberglass d. epoxy resin

Computer Science & Information Technology

Before running code written in any programming language, be sure you know how to interrupt program execution in case you have a logic error and the program becomes stuck in an endless loop.

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

Computer Science & Information Technology