by BlastRoom
Trace variable values and understand how assignment changes them.
#computer_science

50 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.
What does this pseudocode display? SET points TO 7 SET bonus TO 5 SET total TO points + bonus DISPLAY total
What does this pseudocode display? SET width TO 8 SET height TO 3 SET area TO width * height DISPLAY area
After the last line, what value does left hold? SET apples TO 10 SET eaten TO 3 SET left TO apples - eaten
What does this pseudocode display? SET hours TO 4 SET rate TO 15 SET pay TO hours * rate DISPLAY pay
What value does finalTemp hold after this code runs? SET temp TO 18 SET adjustment TO -4 SET finalTemp TO temp + adjustment
What does this pseudocode display? SET start TO 5 SET step TO 2 SET result TO start * step + 1 DISPLAY result
What value does each hold after this code runs? SET tickets TO 12 SET friends TO 3 SET each TO tickets / friends
What does this pseudocode display? SET item1 TO 7 SET item2 TO 9 SET total TO item1 + item2 DISPLAY total
After the assignments, what value does price hold? SET original TO 20 SET discount TO 6 SET price TO original - discount
What does this pseudocode display? SET rows TO 3 SET columns TO 6 SET seats TO rows * columns DISPLAY seats
What value does total hold after this code runs? SET first TO 2 SET second TO 8 SET doubled TO second * 2 SET total TO first + doubled
What does this pseudocode display? SET number TO 9 SET factor TO 4 SET answer TO factor - number DISPLAY answer
What does this pseudocode display? SET count TO 3 SET count TO count * 4 SET count TO count - 2 DISPLAY count
What value does balance hold after the last line? SET balance TO 20 SET balance TO balance + 8 SET balance TO balance - 5
What does this pseudocode display? SET total TO 2 SET total TO total + 6 SET total TO total * 3 DISPLAY total
What value does steps hold after this code runs? SET steps TO 1 SET steps TO steps * 2 SET steps TO steps * 2 SET steps TO steps + 3
What does this pseudocode display? SET score TO 30 SET score TO score - 7 SET score TO score + score DISPLAY score
What value does value hold after this code runs? SET value TO 18 SET value TO value / 3 SET value TO value + 4
What does this pseudocode display? SET index TO 5 SET index TO index - 2 SET index TO index * 4 DISPLAY index
What value does points hold after this code runs? SET points TO 2 SET points TO points + 3 SET points TO points * points
What does this pseudocode display? SET meter TO 16 SET meter TO meter / 2 SET meter TO meter - 1 DISPLAY meter
What value does amount hold after the final assignment? SET amount TO 7 SET amount TO amount * 3 SET amount TO amount - 4
What do the two DISPLAY lines show, in order? SET a TO 10 SET b TO 4 SET a TO b SET b TO a DISPLAY a DISPLAY b
What do the two DISPLAY lines show, in order? SET first TO "sun" SET second TO "moon" SET second TO first SET first TO second DISPLAY first DISPLAY second
What do the two DISPLAY lines show, in order? SET x TO 3 SET y TO 9 SET y TO x SET x TO y + 2 DISPLAY x DISPLAY y
What do the two DISPLAY lines show, in order? SET low TO 2 SET high TO 8 SET low TO high SET high TO low + 1 DISPLAY low DISPLAY high
What do the two DISPLAY lines show, in order? SET name TO "Ava" SET backup TO name SET name TO "Zoe" DISPLAY backup DISPLAY name
What do the two DISPLAY lines show, in order? SET p TO 6 SET q TO 2 SET p TO p + q SET q TO p DISPLAY p DISPLAY q
The blank line must make DISPLAY show 20. Which assignment belongs in the blank? SET coins TO 6 ______ DISPLAY coins
The blank line must make DISPLAY show 4. Which assignment belongs in the blank? SET level TO 9 ______ DISPLAY level
Which missing line makes this program display 18? SET boxes TO 3 ______ DISPLAY boxes
The DISPLAY line should show 7. Which assignment should replace the blank? SET length TO 14 ______ DISPLAY length
Which assignment makes this code display 30? SET price TO 11 ______ DISPLAY price
The missing line must make DISPLAY show 25. Which line works? SET number TO 4 ______ DISPLAY number
Which assignment makes this program display 5? SET count TO 15 ______ DISPLAY count
The blank line must make DISPLAY show 10. Which assignment belongs there? SET starts TO 8 ______ DISPLAY starts
What does the last line display, and why? SET city TO "Denver" SET home TO city SET city TO "Austin" DISPLAY home
What does the last line display, and why? SET original TO "blue" SET saved TO original SET original TO "green" DISPLAY saved
What does the last line display, and why? SET label TO "north" SET direction TO label SET label TO "south" DISPLAY direction
What does the last line display, and why? SET score TO 12 SET oldScore TO score SET score TO 18 DISPLAY oldScore
What does the last line display, and why? SET pet TO "Milo" SET copy TO pet SET pet TO "Luna" DISPLAY copy
What does the last line display, and why? SET status TO "open" SET previous TO status SET status TO "closed" DISPLAY previous
This program should add both prices, but it displays 15. Which line overwrites a value before it is used? 1 SET total TO 0 2 SET price TO 12 3 SET price TO 15 4 SET total TO total + price 5 DISPLAY total
Which line overwrites a value before that value is displayed? 1 SET message TO "Start" 2 SET message TO "Finish" 3 DISPLAY message
This code was meant to add two point values, but it only adds 11. Which line loses the first point value before it is used? 1 SET sum TO 0 2 SET points TO 8 3 SET points TO 11 4 SET sum TO sum + points 5 DISPLAY sum
The program should copy the first color into second before changing first. Which line overwrites the original color too early? 1 SET first TO "red" 2 SET first TO "blue" 3 SET second TO first 4 DISPLAY second
The line SET total TO total + 1 appears in a program. What does it do?
What does this assignment do? SET name TO "Rae"
What does this assignment do? SET x TO y
What does this assignment do? SET flag TO True
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.
Operators and Expressions
50 questions