2210/21/M/J/22 question 2: worked solution (May/June 2022, paper 21)

Show as plain text

Cambridge O Level Computer Science 2210 · 8.1 Programming concepts Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3. Q11 2210/21/M/J/22 original Q2 Structured · 4 marks Worked solution (a) Tick one box in each row: Description Boolean Char Integer Real String a single character from the keyboard ✓ multiple characters from the keyboard ✓ only one of two possible values ✓ only whole numbers ✓ any number ✓ All five rows correct [4] Four correct rows score 3 marks, three correct rows 2 marks and two correct rows 1 mark. KEY IDEA Match each description to its data type: one character is char, text is string, true or false is Boolean, whole is integer and any number is real. TOTAL 4 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.