A Level Computer Science 9618 May/June 2024: past paper questions with answers
Practise 102 real questions from the May/June 2024 exam series, from Paper 1, Paper 2, Paper 3, Paper 4. See the answer and explanation as soon as you answer.
Try 8 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 · Processor, hardware and system software
(a) A video doorbell uses a motion sensor, digital camera, and transmits messages to a smartphone. Identify two characteristics that suggest it is an embedded system.
Show model answer
• The doorbell only performs the specific tasks of motion detection/video recording/doorbell ringing
• The motion sensor and digital camera are built into the doorbell
• The CPU/memory/storage/software are all dedicated to this task only
• Only a dedicated microprocessor is required due to the limited processing requirements
2 marks: 1 each to max 2.
May/June 2024 · Paper 1 · Security and data integrity
(c)(i) The bank's network has a firewall. Explain how a firewall can help protect customers' data.
Show model answer
• Compares all incoming and outgoing transmissions against set criteria/whitelist/blacklist
• Blocks all transmissions that do not meet rules
• Blocks data entering from specific ports
• Blocks unauthorised/unknown internal software transmitting data
3 marks: 1 each to max 3.
May/June 2024 · Paper 2 · Algorithms and software development
(b) Step 1 is changed. A variable ThisSequence is used to enter 10 pairs using a single input statement. Describe the variable ThisSequence and how the numbers are extracted.
Show model answer
• A (variable of type) string will be input, e.g. "67,72"
• A special/identified character would need to be used to separate each numeric value / all numbers are fixed length
2 marks: 1 per point.
May/June 2024 · Paper 2 · Algorithms and software development
(b)(ii) Write the pseudocode module headers for Sub-A and Sub-B.
Sub-A takes Name (STRING) and has an output parameter P2 (BOOLEAN).
Sub-B takes P1 (REAL) and returns a REAL.
Show model answer
PROCEDURE Sub-A(Name : STRING, BYREF P2 : BOOLEAN)
FUNCTION Sub-B(P1 : REAL) RETURNS REAL
4 marks: 1 for each underlined part in each header.
May/June 2024 · Paper 3 · Data structures and data types
(a) Write this RPN in infix form: 5 2 + 9 3 - / 3 *
Show model answer
(5 + 2) / (9 - 3) * 3
Complete: ((5 + 2) / (9 - 3)) * 3
3 marks: 1 per correct term to max 3.
May/June 2024 · Paper 3 · Programming and object-oriented programming
(c) F may be available for B if F is a feature and B is a body style and F is not unavailable for that body style. Write this as a rule.
may_choose_option(F, B) IF ...
Show model answer
may_choose_option(F, B) IF feature(F) AND bodystyle(B) AND NOT unavailable(F, B).
4 marks: 1 for feature(F), 1 for bodystyle(B), 1 for NOT unavailable(F,B), 1 for correct Boolean operators and punctuation.
May/June 2024 · Paper 4 · Programming and object-oriented programming
(c)(ii) Test with input: 30 5 3 9 4 1 2. Take screenshot.
Show model answer
Screenshot showing quantity entered twice (30 invalid, then 5) and array output: 3 9 4 1 2.
2 marks: 1 for output showing invalid then valid, 1 for array output.
May/June 2024 · Paper 4 · Programming and object-oriented programming
(c) Procedure PrintTrees() takes a Tree object and outputs its details. If evergreen: "has a maximum height... does not lose its leaves". If not: "has a maximum height... loses its leaves each year". Write program code.
Show model answer
Procedure takes Tree parameter, outputs name, maxheight, maxwidth, growth, and checks evergreen for message.
4 marks: 1 for procedure header with parameter, 1 for outputting all 4 attributes, 1 for checking evergreen, 1 for correct messages.