Six original Cambridge-style questions on sequence and selection, with mark points.
Describe what is meant by selection and name two types of selection statement.
Write pseudocode that inputs a temperature and outputs "Freezing" if it is below 0, "Cold" if it is from 0 to 15, and "Warm" if it is above 15.
INPUT Temp ✓IF Temp < 0 THEN OUTPUT "Freezing" ✓ELSE IF Temp <= 15 THEN OUTPUT "Cold" ELSE OUTPUT "Warm" (nested IF) ✓State the output of this pseudocode when X is (a) 12 (b) 5 (c) 20.
IF X > 10
THEN
IF X > 15
THEN
OUTPUT "Large"
ELSE
OUTPUT "Medium"
ENDIF
ELSE
OUTPUT "Small"
ENDIFWrite a CASE statement that inputs a grade (a single character) and outputs "Excellent" for 'A', "Good" for 'B', "Fair" for 'C' and "Not recognised" for anything else.
INPUT Grade and CASE OF Grade ✓'A' : OUTPUT "Excellent", 'B' : OUTPUT "Good" ✓'C' : OUTPUT "Fair" ✓OTHERWISE OUTPUT "Not recognised" then ENDCASE ✓Explain why a programmer includes an OTHERWISE clause in a CASE statement.
This code should output "Merit" for marks of 60 or more and "Pass" for marks of 40 to 59. Identify the error and correct it.
IF Mark >= 40
THEN
OUTPUT "Pass"
ELSE
IF Mark >= 60
THEN
OUTPUT "Merit"
ENDIF
ENDIFMark >= 60 first (output Merit), then in the ELSE test Mark >= 40 (output Pass). ✓Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.