Six original Cambridge-style questions on variables, constants, data types and sequence, with mark points.
Explain the difference between a variable and a constant.
A school stores these items for each student. Give the most suitable data type for each: (a) StudentName (b) Age (c) AverageMark, e.g. 67.5 (d) HasPaidTrip (e) FormLetter, e.g. 'C'.
Write pseudocode that declares a constant Pi with the value 3.142, inputs the radius of a circle, then calculates and outputs the area (Pi × radius2).
CONSTANT Pi ← 3.142 ✓DECLARE Radius : REAL and DECLARE Area : REAL ✓INPUT Radius ✓Area ← Pi * Radius ^ 2 then OUTPUT Area (or OUTPUT with a message) ✓State the output of this pseudocode.
A ← 4 B ← 3 C ← A * B - 2 A ← C + A B ← A - B OUTPUT A, " ", B, " ", C
A programmer stores mobile phone numbers as INTEGER. Explain why STRING would be a better choice.
A student chooses the identifiers 2ndScore, Total Mark and OUTPUT. Explain why each one is not allowed.
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.