The loop for displaying "Beetlejuice" three times is ____.

A. Declare Numeric index = 1
While index < 3
   Display "Beetlejuice"
   index = index + 1
End While
B. Declare Numeric index = 0
While index == 3
   Display "Beetlejuice"
   index = index + 1
End While
C. Declare Numeric index = 0
While index <= 3
   Display "Beetlejuice"
   index = index + 1
End While
D. Declare Numeric index = 0
While index < 3
   Display "Beetlejuice"
   index = index + 1
End While


Answer: D

Computer Science & Information Technology

You might also like to view...

Describe the Preview view mode and its keyboard shortcut.

What will be an ideal response?

Computer Science & Information Technology

What is the difference between an if statement and a switch statement?

A. The if is used in functions, the switch is used in main. B. They are identical and any place you can use an if, you can use a switch. C. The if statement allows for complicated condition checking, the switch does not. D. The switch statement allows for complicated condition checking, the if does not.

Computer Science & Information Technology

Like the CISSP, the SSCP certification is more applicable to the security__________ than to the security __________.

A. technician, manager B. manager, engineer C. manager, technician D. technician, executive

Computer Science & Information Technology

What control displays a list of values, and lets users select one from the list?

A. text box B. command button C. option button D. combo box

Computer Science & Information Technology