Which of the following loops displays all numbers from 0 to 40 in increments of 5?
A) Declare Numeric num = 0
While evenNum <= 40
Display num
Num = num + 5
End While
B) Declare Numeric num = 0 While num = 40
Display num
Num = num + 5
End While
C) Declare Numeric num = 1 While num < 40
Display num
Num = num + 5
End While
D) Declare Numeric num = 1 While num = 40
Display num
Num = num + 5
End While
Correct Answer:
Verified
Q31: When a condition is evaluated before any
Q32: The JavaScript code for displaying "Beetlejuice" three
Q33: The loop that displays all even numbers
Q34: Subtracting values from a loop variable is
Q35: Which of the following loops counts backwards
Q37: When using counters and loop variables that
Q38: A(n) _ is a prompt used before
Q39: A(n) _ is a predefined value used
Q40: What is the sentinel value in the
Q41: A(n) _ is one in which the
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