The loop that displays all even numbers from 0 to 18 is ____.
A) Declare Numeric evenNum = 1
While evenNum <= 18
Display evenNum
EvenNum = evenNum + 2
End While
B) Declare Numeric evenNum = 0
While evenNum <= 18
Display evenNum
EvenNum = evenNum + 2
End While
C) Declare Numeric evenNum = 1
While evenNum < 18
Display evenNum
EvenNum = evenNum + 2
End While
D) Declare Numeric evenNum = 0
While evenNum = 18
Display evenNum
EvenNum = evenNum + 2
End While
Correct Answer:
Verified
Q28: A(n) _ is a loop that never
Q29: Adding to the value of a variable
Q30: The loop for displaying "Beetlejuice" three times
Q31: When a condition is evaluated before any
Q32: The JavaScript code for displaying "Beetlejuice" three
Q34: Subtracting values from a loop variable is
Q35: Which of the following loops counts backwards
Q36: Which of the following loops displays all
Q37: When using counters and loop variables that
Q38: A(n) _ is a prompt used before
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents