Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 8 students

Infinite Loop Conditions

Mark
< Prev
Next >

Consider the following code segment, assuming the variable count is initialized to 0.

REPEAT UNTIL (count > max)
 count ← count + step
 DISPLAY(count)

Which combination of values for max and step will result in an infinite loop?

A

max = 10, step = -1

B

max = 0, step = 0

C

max = 10, step = 2

D

max = -5, step = -1

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

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1manessa.hachem201122 0m 00s 200
#2bhavinidixit031111 0m 00s 100
#3ballsgaming21411 0m 44s 56
#4jjacobs12 1m 19s 11
#5soniahalepota200512 1m 36s -6
#6jdvillalta86513 2m 01s -41
#7mahmoudjibrin0813 2m 35s -75
#8tianbo.shen11 7m 59s -379
Items per page:
10
1 – 8 of 8

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|