by BlastRoom
Students read short pseudocode algorithms, trace variables through assignments, selection and loops, predict the output and spot errors.
#computing#ict#cambridge_computing#cambridge_computing_stage_8
20 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
What is pseudocode?
Why do programmers write pseudocode before writing a program?
In pseudocode, what does x ← 5 do?
Which pseudocode keyword displays a value to the user?
x ← 4; x ← x + 3; OUTPUT x. What is output?
a ← 10; b ← 4; a ← a - b; OUTPUT a. What is output?
x ← 3; y ← x * x; OUTPUT y + 1. What is output?
Which pseudocode structure is used for selection?
temp ← 25; IF temp > 25 THEN OUTPUT "Hot" ELSE OUTPUT "Cool". What is output?
Look at the flowchart. The user enters 13. What is output?
How many times does the loop FOR i ← 1 TO 5 run?
score ← 0; FOR i ← 1 TO 4; score ← score + 5; NEXT i; OUTPUT score. What is output?
total ← 0; FOR n ← 1 TO 3; total ← total + n; NEXT n; OUTPUT total. What is output?
Look at the flowchart. What is output?
x ← 10; REPEAT; x ← x + 1; UNTIL x > 5; OUTPUT x. What is output?
What is a trace table used for?
What is a dry run of an algorithm?
This should output the larger number: IF a > b THEN OUTPUT b ELSE OUTPUT a. What is wrong?
A program runs without crashing but gives the wrong answer. What type of error is this?
An algorithm accepts marks from 0 to 100. Which test value best checks the upper boundary?
Outrun the horde and crack the passcode.
Pick a tile, answer, hit bonuses and steals.