Computer Science (9618) · Oct/Nov 2024 · Question paper 32

Cambridge Computer Science (9618) question paper for paper 32, Oct/Nov 2024 — 9618/32/O/N/24, file 9618_w24_qp_32.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

* 0000800000001 *

,

,

Cambridge International AS & A Level
¬OŠ. 4mHuOªEŠ_y5€W
¬kXrO«p›Nv‡mCL-Œ¥‚
¥eE•55E•Ee5 •¥5•U

* 2 3 0 8 8 6 0 8 6 3 *

COMPUTER SCIENCE

9618/32

Paper 3 Advanced Theory

October/November 2024
1 hour 30 minutes

You must answer on the question paper.
No additional materials are needed.
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.

This document has 16 pages. Any blank pages are indicated.
DC (WW/FC) 337425/4
© UCLES 2024

[Turn over

2
,

1

,

(a) Describe how packet switching is used to transmit messages across a network.

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000002 *

[3]
(b) State two benefits and two drawbacks of packet switching as a method of transmitting
messages across a network.
Benefit 1

DO NOT WRITE IN THIS MARGIN

Drawback 1

Drawback 2

[4]
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.

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

Benefit 2

[1]

© UCLES 2024

ĬÍĊ®Ġ´íÈõÏĪÅĊÞû·þ×
ĬëÖñÎğüíåċñĒû²ý´ĝĂ
ĥõÕĕõÕąõõĥĥÅąÕąõµÕ

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

DO NOT WRITE IN THIS MARGIN

* 0000800000003 *

3
,

3

,

(a) Describe the user‑defined data type record.

DO NOT WRITE IN THIS MARGIN

[3]
(b) A programmer defines a record, Order, to store the following data:

•
•
•
•

account number
order number
order price
order date.

DO NOT WRITE IN THIS MARGIN

Write pseudocode statements to define this record.

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

[4]

© UCLES 2024

ĬÏĊ®Ġ´íÈõÏĪÅĊÞù·þ×
ĬëÕòÖĩøýÔíĀ×ßÊÙ´čĂ
ĥõåÕµµĥĕĥĕµÅąµĥµåÕ

9618/32/O/N/24

[Turn over

4
,

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.

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000004 *

Mantissa
0

1

0

0

0

1

1

Exponent
1

0

1

1

1

0

1

1

1

Working

DO NOT WRITE IN THIS MARGIN

Show your working.

(b) Calculate the normalised binary floating‑point representation of – 49.1875 in this system.
Show your working.
Mantissa

Exponent

DO NOT WRITE IN THIS MARGIN

Answer
[2]

[4]

© UCLES 2024

ĬÍĊ®Ġ´íÈõÏĪÅĊàû·Ā×
ĬëÕóÖģĆČçóćÐýĦûäĥĂ
ĥÅõÕõµĥµąµÅÅŵŵµÕ

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

Working

www.dynamicpapers.com

DO NOT WRITE IN THIS MARGIN

* 0000800000005 *

5
,

5

,

(a) Name and describe two protocols used by the Application Layer of the TCP/IP protocol suite.
Protocol 1
Description

DO NOT WRITE IN THIS MARGIN

Protocol 2
Description

[4]
(b) Explain the purpose and function of the Application Layer in the TCP/IP protocol suite.

[3]

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

© UCLES 2024

ĬÏĊ®Ġ´íÈõÏĪÅĊàù·Ā×
ĬëÖôÎĥĊüÒąúęÙĎßäĕĂ
ĥÅąĕµÕąÕĕÅĕÅÅÕåõåÕ

9618/32/O/N/24

[Turn over

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]

© UCLES 2024

ĬÑĊ®Ġ´íÈõÏĪÅĊÝù¶þ×
ĬëÕôÑğĢòÚĂċĤ¹Ħ¾ČĥĂ
ĥĕåĕµõąõÕåµÅąÕąµõÕ

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

INPUT

DO NOT WRITE IN THIS MARGIN

The truth table for a logic circuit is shown.

DO NOT WRITE IN THIS MARGIN

6

,

DO NOT WRITE IN THIS MARGIN

6
,

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000006 *

www.dynamicpapers.com

7
,

,

(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]

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000007 *

© UCLES 2024

ĬÓĊ®Ġ´íÈõÏĪÅĊÝû¶þ×
ĬëÖóÙĩĞĂßøöåĝĎĚČĕĂ
ĥĕÕÕõĕĥĕÅÕĥÅąµĥõĥÕ

9618/32/O/N/24

[Turn over

Several syntax diagrams are shown.

symbol

number

even

1
3

2

5

4

7

6

9

8

letter

%

A

£

B

#

C

@

D

$

E

odd

odd
even

© UCLES 2024

0

DO NOT WRITE IN THIS MARGIN

odd

ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×
ĬëÖòÙģĐćÜúíÞ¿²¼ĜĝĂ
ĥåąÕµĕĥµåõĕÅŵÅõõÕ

DO NOT WRITE IN THIS MARGIN

,

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

7



DO NOT WRITE IN THIS MARGIN

8
,

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000008 *

www.dynamicpapers.com

DO NOT WRITE IN THIS MARGIN

* 0000800000009 *

9
,



,

(a) State why each number is invalid for the given syntax diagrams.
21
Reason

DO NOT WRITE IN THIS MARGIN

123
Reason

[2]
(b) Complete the Backus‑Naur Form (BNF) for the given syntax diagrams.
<symbol> ::=

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

<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.

DO NOT WRITE IN THIS MARGIN

[2]

© UCLES 2024

ĬÓĊ®Ġ´íÈõÏĪÅĊßû¶Ā×
ĬëÕñÑĥĔ÷ÝĀĄīěÊĠĜčĂ
ĥåõĕõõąÕµąÅÅÅÕåµĥÕ

9618/32/O/N/24

[Turn over

10
,

8

,

Complex Instruction Set Computer (CISC) is a type of processor.
Identify four features of a CISC processor.
1

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000010 *

3

4

[4]
(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.

DO NOT WRITE IN THIS MARGIN

9

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

2

[2]

© UCLES 2024

ĬÑĊ®Ġ´íÈõÏĪÅĊÞù¸þ×
Ĭë×òÔġĘđÖñöĈã´ÐäĕĂ
ĥõĥĕµĕŵąÅĕąÅĕÅõÅÕ

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

DO NOT WRITE IN THIS MARGIN

* 0000800000011 *

11
,

,

10 Objects and classes form the basic structure of Object‑Oriented Programming (OOP).
(a) Outline the structure of a class.

DO NOT WRITE IN THIS MARGIN

[3]
(b) Give three differences between an object and a class.
1

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

2

3

[3]

© UCLES 2024

ĬÓĊ®Ġ´íÈõÏĪÅĊÞû¸þ×
ĬëØñÜħĜġãćċÁ÷ÌČäĥĂ
ĥõĕÕõõåÕĕµÅąÅõåµÕÕ

9618/32/O/N/24

[Turn over

12
,

11

,

This binary tree shows an ordered list of integers.
25

4

1

36

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.

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000012 *

DO NOT WRITE IN THIS MARGIN

Complete this linked list to represent the given binary tree organisation.
RootPtr

LeftPtr

Data RightPtr
25

–1

1

DO NOT WRITE IN THIS MARGIN

4

–1

© UCLES 2024

ĬÑĊ®Ġ´íÈõÏĪÅĊàù¸Ā×
ĬëØôÜĝĪĨØĉĄÊÕĨê´čĂ
ĥÅÅÕµõåõõĕµąąõąµÅÕ

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

[4]

www.dynamicpapers.com

13
,

,

(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

0

0

25

1

4

2

36

3

1

4

16

5

64

6

9

7

49

FreePtr

LeftPtr

Data

RightPtr

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

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000013 *

RootPtr

WHILE NowPtr <> NullPtr
IF LinkList[NowPtr].Data < Item THEN
NowPtr

LinkList[NowPtr].RightPtr

ELSE
IF THEN
NowPtr

DO NOT WRITE IN THIS MARGIN

ELSE
RETURN NowPtr
ENDIF
ENDIF
ENDWHILE
RETURN NullPtr
ENDFUNCTION
© UCLES 2024

ĬÓĊ®Ġ´íÈõÏĪÅĊàû¸Ā×
Ĭë×óÔīĦĘáïíÿāĐî´ĝĂ
ĥŵĕõĕÅĕĥĥĥąąĕĥõÕÕ

[4]
9618/32/O/N/24

14
,

,

© UCLES 2024

ĬÍĊ®Ġ´íÈõÏĪÅĊßüµĂ×
ĬëØñÑĥęĠÓùúäÝÅúĄĥĂ
ĥĥµÕµõąµąõĥÅÅÕŵąÕ

9618/32/O/N/24

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

BLANK PAGE

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000014 *

www.dynamicpapers.com

15
,

,

BLANK PAGE

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000015 *

© UCLES 2024

ĬÏĊ®Ġ´íÈõÏĪÅĊßúµĂ×
Ĭë×òÙģĕĐæÿćĥù­ÞĄĕĂ
ĥĥÅĕõĕĥÕĕąµÅŵåõĕÕ

9618/32/O/N/24

16
,

,

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

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

BLANK PAGE

DO NOT WRITE IN THIS MARGIN

www.dynamicpapers.com

* 0000800000016 *

Advertisement