A Level Computer Science 9618 Oct/Nov 2023: past paper questions with answers
Practise 106 real questions from the Oct/Nov 2023 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 2023
These are real past-paper questions. Think of your answer first, then open the explanation.
October/November 2023 · Paper 1 · Networks and communication
(a) Describe the function of a router in a network.
Show model answer
• Receives packets from internet / external network
• Implements a firewall
• Analyses the destination IP address of each packet
• Forwards the packet towards its destination // send packets onto local network or external network using the routing table
• Maintains / updates the routing
• Allocates private IP addresses
• Finds the most efficient route to the destination
• Changes the packet format for transmission over the next network
• Network Address Translation (NAT): allows multiple devices in a private LAN to share a single public IP address
3 marks: 1 for each bullet point to max 3.
October/November 2023 · Paper 1 · Processor, hardware and system software
(b) State one reason why some high-level languages are partially compiled and partially interpreted.
Show model answer
• Partially compiled programs can be used on different platforms as they are interpreted when run
• Code is optimised for the CPU as machine code is generated at run time
• Source code does not need recompiling so more efficient to run
1 mark.
October/November 2023 · Paper 1 · Processor, hardware and system software
(c)(ii) The current contents of the ACC are: 00010111
Show the contents of the ACC after: LSR #3
Show model answer
00000010
1 mark.
October/November 2023 · Paper 2 · Programming and object-oriented programming
(a) The pseudocode contains three errors due to the incorrect use of operators. Identify each error and state the correction required.
Show model answer
1. Num > Min should be Num < Min
2. Count & 1 should be Count + 1
3. NextInput ← "END" should be NextInput = "END"
3 marks: 1 for each error identified and corrected.
October/November 2023 · Paper 3 · Data representation
(b) Explain the problem that will occur in storing the normalised floating-point representation of +65.20 in this system.
Show model answer
• The decimal fraction 0.20 cannot be represented exactly (the closest is 0.25 / 0.1875)
• Therefore, there will be a loss of precision due to a rounding error / truncation
2 marks: 1 for each point.
October/November 2023 · Paper 3 · Programming and object-oriented programming
(b) Define the term exception handling.
Show model answer
(Exception handling is the process of) responding to an unexpected event when the program is running so it does not halt unexpectedly.
1 mark.
October/November 2023 · Paper 4 · Programming and object-oriented programming
(a)(ii) Write program code to call IterativeVowels() with the parameter "house" from the main program. Output the return value.
Show model answer
Python: print(IterativeVowels("house"))
Java: System.out.println(IterativeVowels("house"));
VB.NET: Console.WriteLine(IterativeVowels("house"))
2 marks: 1 for calling the function with "house", 1 for outputting the return value.
October/November 2023 · Paper 4 · Programming and object-oriented programming
(e)(i) Write program code for the main program.
Call ReadData(), call TotalData() for each element in queue, call OutputRecords().
Show model answer
Python:
Queue = []
Records = []
HeadPointer = 0
TailPointer = 0
ReadData()
NumberRecords = 0
while HeadPointer != TailPointer:
TotalData()
OutputRecords()
Java:
public static void main(String args[]){
ReadData();
while(HeadPointer != TailPointer){
TotalData();
}
OutputRecords();
}
VB.NET:
Sub Main(args As String())
HeadPointer = 0
TailPointer = 0
ReadData()
NumberRecords = 0
While HeadPointer <> TailPointer
TotalData()
End While
OutputRecords()
End Sub
2 marks: 1 for calling ReadData() first and OutputRecords() last, 1 for looping through all queue elements and calling TotalData().