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


Answer: B

Computer Science & Information Technology

You might also like to view...

Where can you find Microsoft Office for iPad?

A) The Microsoft Apps Store B) The Apple Store C) The Google website D) The Amazon website E) A and B

Computer Science & Information Technology

Which one of the following statements initializes a variable with an integer literal?

a. int score = 2500; b. decimal total = 156.78m; c. double rate = 0.00435; d. string name = "Michelle";

Computer Science & Information Technology

Which of the following statements about Twitter is not true?

a. Twitter is a microblog. b. Users send posts that are no more than 140 characters. c. Users do not need permission to follow other Twitter users. d. Users can send replies, known as chirps, to other users.

Computer Science & Information Technology

Every function must return one or more values.

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

Computer Science & Information Technology