Cambridge International AS & A Level: Computer Science 9618/32
Cambridge International AS & A Level: Computer Science 9618/32
, ,
¬O. 4mHuOªE_y5W
¬kXrO«pNvmCL-¥
¥eE55EEe5 ¥5U
* 2 3 0 8 8 6 0 8 6 3 *
1 hour 30 minutes
INSTRUCTIONS
● Answer all questions.
● Use a black or dark blue pen.
● Write your name, centre number and candidate number in the boxes at the top of the page.
● Write your answer to each question in the space provided.
● Do not use an erasable pen or correction fluid.
● Do not write on any bar codes.
● You may use an HB pencil for any diagrams, graphs or rough working.
● Calculators must not be used in this paper.
INFORMATION
● The total mark for this paper is 75.
● The number of marks for each question or part question is shown in brackets [ ].
● No marks will be awarded for using brand names of software packages or hardware.
DC (WW/FC) 337425/4
© UCLES 2024 [Turn over
* 0000800000002 *
1 (a) Describe how packet switching is used to transmit messages across a network.
Data
...... is seperated into
.................................... several data packets. Each data packet has a
.........................................................................................................
unique sequence number. The packets are transmitted through different
routes so they arrive at different time. The packets are reassembled at
..........................................
the destination according .........................................................................................................
to their sequence number
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
(b) State two benefits and two drawbacks of packet switching as a method of transmitting
messages across a network.
Use of multiple route so more secure
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
The routes could be used by other transmissions so lower cost
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
Unsuitable for real time transmission
Drawback 2 ...............................................................................................................................
...................................................................................................................................................
[4]
2 (a) Describe serial file organisation as a method of storing data records in a file.
...................................................................................................................................................
............................................................................................................................................. [2]
............................................................................................................................................. [1]
ĬÍĊ®Ġ´íÈõÏĪÅĊÞû·þ×
© UCLES 2024 ĬëÖñÎğüíåċñĒû²ý´ĝĂ
ĥõÕĕõÕąõõĥĥÅąÕąõµÕ
9618/32/O/N/24
* 0000800000003 *
3
, ,
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
• account number
• order number
• order price
• order date.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
ĬÏĊ®Ġ´íÈõÏĪÅĊÞù·þ×
© UCLES 2024 ĬëÕòÖĩøýÔíĀ×ßÊÙ´čĂ
ĥõåÕµµĥĕĥĕµÅąµĥµåÕ
9618/32/O/N/24 [Turn over
* 0000800000004 *
4
, ,
(a) Calculate the denary value of the given normalised binary floating‑point number.
Mantissa Exponent
0 1 0 0 0 1 1 1 0 1 1 1 0 1 1 1
1 + 2 + 4 = 7
Working .....................................................................................................................................
1 + 2 + 4 + 64 + 0.25 + 0.125 + 0.0625
71.4375
...................................................................................................................................................
...................................................................................................................................................
71.4375
Answer ......................................................................................................................................
[2]
(b) Calculate the normalised binary floating‑point representation of – 49.1875 in this system.
Mantissa Exponent
0110
100111011010
-49.1875 = -64 + 8 + 4 + 2 + 0.5 + 0.25 + 0.0625
Working .....................................................................................................................................
1001110.1101
6 = 4 + 2 0110
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
ĬÍĊ®Ġ´íÈõÏĪÅĊàû·Ā×
© UCLES 2024 ĬëÕóÖģĆČçóćÐýĦûäĥĂ
ĥÅõÕõµĥµąµÅÅŵŵµÕ
9618/32/O/N/24
* 0000800000005 *
5
, ,
5 (a) Name and describe two protocols used by the Application Layer of the TCP/IP protocol suite.
STMP
Protocol 1 .................................................................................................................................
Sending email
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
IMAP
Protocol 2 .................................................................................................................................
Receive email
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Explain the purpose and function of the Application Layer in the TCP/IP protocol suite.
The Application Layer can directly communicate to the user and
...................................................................................................................................................
exchange data with the programs such as web browsers. It
receive form and transmit to Transport Layer. It defines the
protocols used by any software so the exchange could be
...................................................................................................................................................
established.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
ĬÏĊ®Ġ´íÈõÏĪÅĊàù·Ā×
© UCLES 2024 ĬëÖôÎĥĊüÒąúęÙĎßäĕĂ
ĥÅąĕµÕąÕĕÅĕÅÅÕåõåÕ
9618/32/O/N/24 [Turn over
* 0000800000006 *
6
, ,
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.
~A~B~CD + ~A~BC~D + ~AB~CD + ~ABC~D + A~B~CD + A~BC~D + AB~CD
X = ............................................................................................................................................
+ ABC~D
............................................................................................................................................. [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝù¶þ×
© UCLES 2024 ĬëÕôÑğĢòÚĂċĤ¹Ħ¾ČĥĂ
ĥĕåĕµõąõÕåµÅąÕąµõÕ
9618/32/O/N/24
* 0000800000007 *
7
, ,
(b) Complete the Karnaugh map (K‑map) for the given truth table.
AB
CD
00 01 11 10
00 0 0 0 0
01 1 1 1 1
11
0 0 0 0
10
1 1 1 1
[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.
~CD + C~D
X = ............................................................................................................................................
............................................................................................................................................. [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝû¶þ×
© UCLES 2024 ĬëÖóÙĩĞĂßøöåĝĎĚČĕĂ
ĥĕÕÕõĕĥĕÅÕĥÅąµĥõĥÕ
9618/32/O/N/24 [Turn over
* 0000800000008 *
8
, ,
odd even
1 0
3 2
5 4
7 6
9 8
symbol letter
% A
£ B
# C
@ D
$ E
number
odd odd
even
ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×
© UCLES 2024 ĬëÖòÙģĐćÜúíÞ¿²¼ĜĝĂ
ĥåąÕµĕĥµåõĕÅŵÅõõÕ
9618/32/O/N/24
* 0000800000009 *
DO NOT WRITE IN THIS MARGIN
9
, ,
(a) State why each number is invalid for the given syntax diagrams.
21
Must start with an odd number
Reason .....................................................................................................................................
...................................................................................................................................................
123
...................................................................................................................................................
[2]
(b) Complete the Backus‑Naur Form (BNF) for the given syntax diagrams.
%|.....................................
<symbol> ::= ..... £|#|@|$ ..............................................................................
...................................................................................................................................................
<odd>|<odd><odd>|<odd><even>
<number> ::= ........................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
[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.
code
letter number number symbol
DO NOT WRITE IN THIS MARGIN
[3]
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊßû¶Ā×
© UCLES 2024 ĬëÕñÑĥĔ÷ÝĀĄīěÊĠĜčĂ
ĥåõĕõõąÕµąÅÅÅÕåµĥÕ
9618/32/O/N/24 [Turn over
* 0000800000010 *
10
, ,
3 .......................................................................................................................................................
..........................................................................................................................................................
4 .......................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
............................................................................................................................................. [2]
(b) (i) State what is meant by the term multi‑tasking in an Operating System.
Carrying out multiple processes simutaneously
...........................................................................................................................................
..................................................................................................................................... [1]
...........................................................................................................................................
..................................................................................................................................... [2]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞù¸þ×
© UCLES 2024 Ĭë×òÔġĘđÖñöĈã´ÐäĕĂ
ĥõĥĕµĕŵąÅĕąÅĕÅõÅÕ
9618/32/O/N/24
* 0000800000011 *
11
, ,
10 Objects and classes form the basic structure of Object‑Oriented Programming (OOP).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
...................................................................................................................................................
No memory space is allocated to class, space is only allocated to
2 ................................................................................................................................................
objects
...................................................................................................................................................
...................................................................................................................................................
Class can use inheritance, an object cannot
3 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞû¸þ×
© UCLES 2024 ĬëØñÜħĜġãćċÁ÷ÌČäĥĂ
ĥõĕÕõõåÕĕµÅąÅõåµÕÕ
9618/32/O/N/24 [Turn over
* 0000800000012 *
12
, ,
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.
Complete this linked list to represent the given binary tree organisation.
RootPtr
25
4 |-1|36| |
| |16|-1| | |64|-1|
–1 1 –1
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊàù¸Ā×
© UCLES 2024 ĬëØôÜĝĪĨØĉĄÊÕĨê´čĂ
ĥÅÅÕµõåõõĕµąąõąµÅÕ
9618/32/O/N/24
* 0000800000013 *
DO NOT WRITE IN THIS MARGIN
13
, ,
(b) A 2D array is used to store the nodes of the linked list in part (a).
3 -1 1 -1
4 6 16 -1
5 7 64
-1
FreePtr 6 -1 9 -1
8 7 -1 49 -1
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.
DO NOT WRITE IN THIS MARGIN
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.
RETURNS INTEGER
FUNCTION SearchList(Item : INTEGER)........................................................................
NullPtr −1
NowPtr
.................................................................... RootPtr
DO NOT WRITE IN THIS MARGIN
NowPtr LinkList[NowPtr].LeftPtr
NowPtr .....................................................................................................
ELSE
RETURN NowPtr
DO NOT WRITE IN THIS MARGIN
ENDIF
ENDIF
ENDWHILE
RETURN NullPtr
ENDFUNCTION
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊàû¸Ā×
© UCLES 2024 Ĭë×óÔīĦĘáïíÿāĐî´ĝĂ
ĥŵĕõĕÅĕĥĥĥąąĕĥõÕÕ
9618/32/O/N/24
* 0000800000014 *
14
, ,
BLANK PAGE
ĬÍĊ®Ġ´íÈõÏĪÅĊßüµĂ×
© UCLES 2024 ĬëØñÑĥęĠÓùúäÝÅúĄĥĂ
ĥĥµÕµõąµąõĥÅÅÕŵąÕ
9618/32/O/N/24
* 0000800000015 *
15
, ,
BLANK PAGE
ĬÏĊ®Ġ´íÈõÏĪÅĊßúµĂ×
© UCLES 2024 Ĭë×òÙģĕĐæÿćĥùÞĄĕĂ
ĥĥÅĕõĕĥÕĕąµÅŵåõĕÕ
9618/32/O/N/24
* 0000800000016 *
16
, ,
BLANK PAGE
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the
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
Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.
ĬÍĊ®Ġ´íÈõÏĪÅĊÝüµĄ×
© UCLES 2024 Ĭë×óÙĩħęÑāĀĞÛđĀĔĝĂ
ĥÕĕĕµĕĥõõåÅÅąµąõąÕ
9618/32/O/N/24