Past paper – A Level Computer Science (9618)
Cambridge International AS & A Level · 9618
Computer Science · Paper 32
Oct/Nov 2024 · 9618/32/O/N/24
Answer on paper, open each mark scheme and give yourself marks, then open the Summary.
Question text
1
(a) Describe how packet switching is used to transmit messages across a network.
…
…
…
…
…
… [3]
(b) State two benefits and two drawbacks of packet switching as a method of transmitting
messages across a network.
Benefit 1 …
…
Benefit 2 …
…
Drawback 1 …
…
Drawback 2 …
…
[4]
Question text
2
(a) Describe serial file organisation as a method of storing data records in a file.
…
…
…
… [2]
(b) State one example of a use for serial file organisation.
…
… [1]
ĬÍĊ®Ġ´íÈõÏĪÅĊÞû·þ×
Question text
3
(a) Describe the user‑defined data type record.
…
…
…
…
…
… [3]
(b) A programmer defines a record, Order, to store the following data:
•
account number
•
order number
•
order price
•
order date.
Write pseudocode statements to define this record.
…
…
…
…
…
…
…
… [4]
ĬÏĊ®Ġ´íÈõÏĪÅĊÞù·þ×
Question text
4
Numbers are stored in a computer using binary floating‑point representation with:
•
12 bits for the mantissa
•
4 bits for the exponent
•
two’s complement form for both the mantissa and the exponent.
(a) Calculate the denary value of the given normalised binary floating‑point number.
Show your working.
Mantissa
Exponent
1
0
0
0
1
1
1
0
1
1
1
0
1
1
1
0
Working …
…
…
Answer …
[2]
(b) Calculate the normalised binary floating‑point representation of – 49.1875 in this system.
Show your working.
Mantissa
Exponent
Working …
…
…
…
…
…
…
…
[4]
ĬÍĊ®Ġ´íÈõÏĪÅĊàû·Ā×
Question text
5
(a) Name and describe two protocols used by the Application Layer of the TCP/IP protocol suite.
Protocol 1 …
Description …
…
…
Protocol 2 …
Description …
…
…
[4]
(b) Explain the purpose and function of the Application Layer in the TCP/IP protocol suite.
…
…
…
…
…
… [3]
ĬÏĊ®Ġ´íÈõÏĪÅĊàù·Ā×
Question text
6
The truth table for a logic circuit is shown.
INPUT
OUTPUT
A
B
C
D
X
0
0
0
0
0
0
0
0
1
1
0
0
1
0
1
0
0
1
1
0
0
1
0
0
0
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
0
0
0
1
0
0
1
1
1
0
1
0
1
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
1
1
1
0
1
1
1
1
1
0
(a) Write the Boolean logic expression that corresponds to the given truth table as the
sum‑of‑products.
X = …
… [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝù¶þ×
,
,
(b) Complete the Karnaugh map (K‑map) for the given truth table.
AB
CD
00
01
11
10
00
01
11
10
[2]
(c) Draw loop(s) around appropriate group(s) in the K‑map to produce an optimal sum‑of‑products.
[2]
(d) Write the Boolean logic expression from your answer to part (c) as the simplified
sum‑of‑products.
X = …
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝû¶þ×
Question text
7
Several syntax diagrams are shown.
odd
even
1
0
3
2
5
4
7
6
9
8
symbol
letter
%
A
£
B
#
C
@
D
$
E
number
odd
odd
even
ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×
,
,
(a) State why each number is invalid for the given syntax diagrams.
21
Reason …
…
123
Reason …
…
[2]
(b) Complete the Backus‑Naur Form (BNF) for the given syntax diagrams.
<symbol> ::= …
…
<number> ::= …
…
[2]
(c) A new syntax rule, code, is required. It must begin with a letter, followed by one or two
numbers, and end with a symbol.
(i)
Draw a syntax diagram for code.
[3]
(ii)
Write the BNF for code.
…
…
…
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊßû¶Ā×
Question text
8
Complex Instruction Set Computer (CISC) is a type of processor.
Identify four features of a CISC processor.
1 …
…
2 …
…
3 …
…
4 …
…
[4]
Question text
9
(a) The kernel is the central component of an Operating System (OS).
Outline how the kernel of an OS acts as an interrupt handler.
…
…
…
… [2]
(b) (i)
State what is meant by the term multi‑tasking in an Operating System.
…
… [1]
(ii)
Describe how multi‑tasking is implemented in an Operating System.
…
…
…
… [2]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞù¸þ×
Question text
10 Objects and classes form the basic structure of Object‑Oriented Programming (OOP).
(a) Outline the structure of a class.
…
…
…
…
…
… [3]
(b) Give three differences between an object and a class.
1 …
…
…
2 …
…
…
3 …
…
…
[3]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞû¸þ×
Question text
11
This binary tree shows an ordered list of integers.
25
4
36
1
16
64
9
49
(a) A linked list of nodes is used to store the data. Each node consists of a left pointer, the data
and a right pointer.
−1 is used to represent a null pointer.
Complete this linked list to represent the given binary tree organisation.
RootPtr
LeftPtr
Data RightPtr
25
4
–1
1
–1
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊàù¸Ā×
,
,
(b) A 2D array is used to store the nodes of the linked list in part (a).
Complete the diagram using your answer for part (a).
RootPtr
Index
LeftPtr
Data
RightPtr
0
25
0
4
1
36
2
1
3
16
4
64
5
9
FreePtr
6
49
7
8
[4]
(c) The linked list in part (a) is implemented using a 1D array of records. Each record contains a
left pointer, data and a right pointer.
The following pseudocode represents a function that searches for an element in the array of
records LinkList. It returns the index of the record if the element is found, or it returns a
null pointer if the element is not found.
Complete the pseudocode for the function.
FUNCTION SearchList(Item : INTEGER) …
−1
NullPtr
RootPtr
…
WHILE NowPtr <> NullPtr
IF LinkList[NowPtr].Data < Item THEN
NowPtr
LinkList[NowPtr].RightPtr
ELSE
IF … THEN
NowPtr
…
ELSE
RETURN NowPtr
ENDIF
ENDIF
ENDWHILE
RETURN NullPtr
ENDFUNCTION
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊàû¸Ā×
,
,
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
ĬÍĊ®Ġ´íÈõÏĪÅĊÝüµĄ×