Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Consider the following code segment:
i ? 100 REPEAT UNTIL i = 0 { <MISSING CODE> }
Which of the following replacements for <MISSING CODE> will cause an infinite loop?
<MISSING CODE>
i ← i MOD 2
i ← i MOD 4
i ← i MOD 7
i ← i MOD 10