Tayyari Karo Open the app

O Level Computer Science 2210 May/June 2024: past paper questions with answers

Practise 19 real questions from the May/June 2024 exam series, from Paper 1, Paper 2. See the answer and explanation as soon as you answer.

19real questions
2papers
8topics

About the May/June 2024 Computer Science paper

May/June 2024 is one of the exam sessions in our O Level Computer Science (Cambridge (CAIE) 2210) question bank. We have 19 real questions from it. Work through them, open the explanation for each one, and redo the ones you missed a few days later.

Try 5 real questions from May/June 2024

These are real past-paper questions. Think of your answer first, then open the explanation.

May/June 2024 · Paper 1 · Hardware and software

A computer needs firmware and system software to operate. (a) State the purpose of firmware. (b) Give one example of firmware. (c) Give two examples of system software.

Show model answer

(a) Firmware is permanent software stored in ROM/EEPROM that controls the hardware at a low level and starts the computer (e.g. it contains the instructions needed to boot the system).
(b) Any one: BIOS, UEFI, bootloader.
(c) Any two: operating system, device drivers, utility software.

Firmware = low-level permanent software (BIOS); system software = OS, drivers, utilities.

May/June 2024 · Paper 2 · Algorithm design and problem solving

Tick one box to complete this sentence. A validation check to make sure that an email address contains an '@' sign is a: A range check; B visual check; C presence check; D format check.

Show model answer

D - format check (it checks the data is in the correct format / pattern).

Checking for '@' is a format check.

May/June 2024 · Paper 2 · Programming

State what is meant by the data types integer and real. Give an example of each.

Show model answer

Integer: a whole number with no fractional/decimal part, e.g. 42.
Real: a number that can have a fractional/decimal part, e.g. 3.14.

Integer = whole number (e.g. 42); real = decimal (e.g. 3.14).

May/June 2024 · Paper 2 · Programming

Write the pseudocode statements to perform this task: accept the input of a whole number from 1 to 4 inclusive; use a CASE statement to: output the number (1 to 4 inclusive) that was entered; output the word ERROR if a 1 to 4 inclusive number was not entered.

Show model answer

INPUT N
CASE N OF
1: OUTPUT 1
2: OUTPUT 2
3: OUTPUT 3
4: OUTPUT 4
OTHERWISE: OUTPUT "ERROR"
ENDCASE

CASE N: 1-4 output N, otherwise OUTPUT "ERROR".

May/June 2024 · Paper 2 · Programming

(a) Outline why it is useful to store data in a file. (b) The function LENGTH(X) calculates the length of a string X. Write the pseudocode statements to: read the contents of the text file Quotation.txt into an appropriate string variable that has been declared; output the string in upper case and the length of the string.

Show model answer

(a) Storing data in a file makes it persistent (kept after the program ends), allows it to be retrieved later, shared between programs/users, and stored on secondary storage.
(b) OPEN "Quotation.txt" FOR INPUT AS #f
READ #f, Text
CLOSE #f
OUTPUT UPPER(Text)
OUTPUT LENGTH(Text)

Read file into string, then OUTPUT UPPER and LENGTH.

Topics in May/June 2024

Questions by paper

PaperQuestions
Paper 19
Paper 210

Common questions

What is in the O Level Computer Science May/June 2024 paper on this page?

19 real O Level Computer Science (2210) questions from the May/June 2024 series, from Paper 1, Paper 2. Each one shows its paper and topic.

Do I get the answers and explanations?

Yes. Every question shows the correct answer and a short explanation the moment you answer.

Can I download the May/June 2024 paper PDF?

Premium includes the paper PDFs. The first papers of each subject are free to open in the app.

Is it free?

You can start free with no signup. Premium unlocks every paper, the full question bank and the paper PDFs.

Other Computer Science exam sessions

All O Level Computer Science questions

Computer Science at other levels

Ready to start?

Free to start. No signup needed to try the questions.

Open Tayyari Karo