by BlastRoom
Practice tracing and repairing pseudocode that uses sequence, selection, and iteration.
#computer_science

20 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
Answer to place stones and capture territory.
Outrun the snow together.
Earn blasts, then hunt the other team.
Answer to earn energy, then climb.

The class blasts through walls together.
Bid on mystery lots. Most money wins.
Sell tours. Nice, standard, or a total scam.
Answer, restock, and serve the rush.
More correct answers pulls the rope your way.
Answer, then shoot down the alien wave.
Answer, then tap to leap the frozen ridge.
Trace this pseudocode. SET total TO 0 FOR count FROM 1 TO 4 SET total TO total + count END FOR OUTPUT total What is printed?
What does this pseudocode output? SET temperature TO 18 IF temperature < 20 THEN OUTPUT "JACKET" ELSE OUTPUT "T-SHIRT" END IF
Trace this pseudocode. SET product TO 1 FOR factor FROM 2 TO 4 SET product TO product * factor END FOR OUTPUT product What is printed?
What is printed by this sequence? SET message TO "Go" SET message TO message + "!" OUTPUT message
Trace this selection. SET points TO 72 IF points >= 75 THEN OUTPUT "HIGH" ELSE OUTPUT "RETRY" END IF What is printed?
Trace this pseudocode. SET n TO 1 SET total TO 0 WHILE n <= 3 SET total TO total + n SET n TO n + 1 END WHILE OUTPUT total What is printed?
What does this pseudocode print? SET code TO 9 IF code MOD 2 = 0 THEN OUTPUT "EVEN" ELSE OUTPUT "ODD" END IF
This pseudocode should print PASS whenever score is 50 or more. INPUT score IF ______ THEN OUTPUT "PASS" END IF Which condition fills the gap?
This loop should print GO exactly three times. FOR step FROM ___ TO 3 OUTPUT "GO" END FOR Which value fills the gap?
This pseudocode should print EVEN only when number is divisible by 2. INPUT number IF number MOD 2 ___ 0 THEN OUTPUT "EVEN" END IF Which operator fills the gap?
This pseudocode should calculate the product of 2, 3, and 4. SET product TO 1 FOR factor FROM 2 TO 4 SET product TO product ___ factor END FOR OUTPUT product Which operator fills the gap?
This pseudocode should print 0, 1, 2, 3, and 4. SET count TO 0 WHILE count < 5 OUTPUT count SET count TO count ___ END WHILE Which expression fills the gap?
After this loop ends, what value does n have? SET n TO 10 WHILE n > 3 SET n TO n - 2 END WHILE OUTPUT n
What value does x have when this loop ends? SET x TO 2 WHILE x < 20 SET x TO x * 2 END WHILE OUTPUT x
What value is printed after the loop? SET balance TO 1 WHILE balance <= 10 SET balance TO balance + 3 END WHILE OUTPUT balance
What value does index have when this loop ends? SET index TO 0 WHILE index < 4 SET index TO index + 1 END WHILE OUTPUT index
This pseudocode should output the larger of a and b. INPUT a INPUT b IF a > b THEN OUTPUT a ELSE OUTPUT a END IF Which change fixes it?
This pseudocode should output EVEN for even numbers and ODD for odd numbers. INPUT number IF number MOD 2 = 1 THEN OUTPUT "EVEN" ELSE OUTPUT "ODD" END IF Which change fixes it?
This pseudocode should find the sum of 1 through 5. SET total TO 0 FOR n FROM 1 TO 5 SET total TO total + 1 END FOR OUTPUT total Which change fixes it?
This pseudocode should output LATE only when minutes is greater than 0. INPUT minutes IF minutes >= 0 THEN OUTPUT "LATE" ELSE OUTPUT "ON TIME" END IF Which change fixes it?
Crack the passcode before the zombies get in.
Answer, then swat bugs for bonus points.
Race through questions at your own speed.
Same question on every screen. Fastest wins.

Pick a tile, answer, hit bonuses and steals.
Input, Output, Storage and Processing
50 questions