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...

During a presentation, hidden slides can be useful if the speaker anticipates some questions that may arise and creates additional slides to answer them

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is used to associate a public key with an identity?

A) Encryption B) Digital hash C) Digital certificate D) Digital signature

Computer Science & Information Technology