A Level Computer Science 9618 Oct/Nov 2024: past paper questions with answers
Practise 105 real questions from the Oct/Nov 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 Oct/Nov 2024
These are real past-paper questions. Think of your answer first, then open the explanation.
October/November 2024 · Paper 1 · Data representation
(a) State one difference between a tebibyte and a gigabyte.
Show model answer
• A tebibyte = 1024 gibibytes / 1,048,576 kibibytes / 2^40 bytes whereas a gigabyte = 1000 megabytes / 1,000,000 kilobytes / 10^9 bytes
• Tebi is binary prefix, giga is denary prefix
1 mark.
October/November 2024 · Paper 1 · Processor, hardware and system software
(b)(ii) Identify an appropriate type of port to connect the solid state memory drive to the computer. Explain how this port provides an automatic connection.
Show model answer
Port: USB / Universal Serial Bus
Explanation:
• A voltage change occurs when the drive is plugged in
• The computer detects this voltage change
• The code of the device is transferred to computer
• The OS finds the code of the device in the list of devices and loads the appropriate device driver
3 marks: 1 for correct port, 2 for explanation.
October/November 2024 · Paper 1 · Boolean algebra and logic circuits
(b) Write logic expressions for the security system.
Floodlight X = 1 if: security on AND daylight low AND person detected within 2m.
Audio alarm Y = 1 if: security on AND (one or more doors open OR person detected within 2m).
Show model answer
X = E AND A AND C
Y = E AND (B OR C OR D)
2 marks: 1 for each correct expression.
October/November 2024 · Paper 2 · Programming and object-oriented programming
(c) Give the appropriate data type for the variables HighRate and TaxPayable.
Show model answer
HighRate: Boolean
TaxPayable: Real
2 marks: 1 for each data type.
October/November 2024 · Paper 2 · Programming and object-oriented programming
(a) Write pseudocode for module CheckMark().
Called with an integer parameter. Returns TRUE if the mark is within 2 of any of the five grade boundaries.
Show model answer
FUNCTION CheckMark(Mark : INTEGER) RETURNS BOOLEAN
DECLARE Index, Lower, Upper : INTEGER
FOR Index ← 1 TO 5
Lower ← GradeBoundary[Index] - 2
Upper ← GradeBoundary[Index] + 2
IF Mark >= Lower AND Mark <= Upper THEN
RETURN TRUE
ENDIF
NEXT Index
RETURN FALSE
ENDFUNCTION
6 marks: 1 for loop through all elements, 1 for attempt to calculate range, 1 for completely correct range calculation, 1 for test if mark is within range, 1 for set variable / immediate RETURN if recheck required, 1 for return Boolean in both cases.
October/November 2024 · Paper 3 · Boolean algebra and logic circuits
(d)(i) Write the Boolean logic expression from your answer to part (c) as the simplified sum-of-products.
Show model answer
T = A.D + B.D // B.D + A.D
2 marks: 1 for any correct Boolean term, 1 for Boolean terms and operator correct and no other terms present.
October/November 2024 · Paper 4 · Programming and object-oriented programming
(b)(ii) Write program code for the main program.
Calls ReadData() and stores returned array. Calls FormatArray() with returned array and outputs returned string.
Show model answer
Python:
Colours = ReadData()
print(FormatArray(Colours))
Java:
String[] Colours = new String[45];
Colours = ReadData();
System.out.println(FormatArray(Colours));
VB.NET:
Dim Colours(45) As String
Colours = ReadData()
Console.WriteLine(FormatArray(Colours))
3 marks: 1 for calling ReadData() and storing returned array, 1 for calling FormatArray() with returned array, 1 for outputting return value.
October/November 2024 · Paper 4 · Programming and object-oriented programming
(c)(ii) Amend the main program to declare array Course of Fence objects. Take input for four fences with validation (height 70-180, risk 1-5).
Show model answer
Python:
Course = []
for x in range(0, 4):
Valid = False
while Valid == False:
Height = int(input("Enter the height in cm"))
if(Height >= 70 and Height <= 180):
Valid = True
Valid = False
while Valid == False:
Risk = int(input("Enter the risk between 1 (easy) and 5 (hard)"))
if(Risk >= 1 and Risk <= 5):
Valid = True
Course.append(Fence(Height, Risk))
Java:
Fence[] Course = new Fence[4];
for(Integer x = 0; x < 4; x++){
do{
System.out.println("Enter the height in cm");
Height = Integer.parseInt(scanner.nextLine());
}while(Height < 70 || Height > 180);
do{
System.out.println("Enter the risk between 1 (easy) and 5 (hard)"); …
The full model answer is in the app.