Are you taking AP classes? Try apfive.com
501(c)(3) Nonprofit
easy

Analyzing Pseudocode Loop Output

< Prev
Next >

Which of the following describes the output of the pseudocode segment below?

i = 2

while i <= 50:

print i

I += 2

A

Identify a word labeled with the number 2 and determine how many times the text is printed, up to 50 times.

B

Recognize two-syllable words and print the first 50 words in a list.

C

Print numbers equal to 2 and less than 50.

D

Print all even numbers from 2 to 50.

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

AI Tutor

How can I help?