Compiled Yearly of 9618 Cs
Compiled Yearly of 9618 Cs
* 2 5 7 9 4 4 0 8 6 9 *
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 (LO) 213986
© UCLES 2021 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(b) Calculate the denary value of the given binary floating-point number.
Show your working.
Mantissa Exponent
1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 1
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
Mantissa Exponent
0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(d) The denary number 513 cannot be stored accurately as a normalised floating-point number in
this computer system.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
(ii) Describe an alteration to the way floating-point numbers are stored to enable this number
to be stored accurately using the same total number of bits.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(i) SchoolDay to hold data about the days students are usually in school.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) WeekEnd to hold data about the days that are not school days.
...........................................................................................................................................
..................................................................................................................................... [1]
(c) Define, using pseudocode, the composite data type ClubMeet. This will hold data about club
members that includes:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
3 (a) Draw one line to connect each Operating System (OS) term to the most appropriate
description about it.
OS term Description
Interrupt handling
Scheduling
Transferring control to another routine when
a service is required
Virtual memory
Reading/writing same-size blocks of data
from/to secondary storage when required
[5]
(b) Explain how an interpreter executes a program without producing a complete translated
version of it.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
4 (a) (i) Explain why Reverse Polish Notation (RPN) is used to carry out the evaluation of
expressions.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
(ii) Identify, with reasons, a data structure that could be used to evaluate an expression
in RPN.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
(a – b) * (a + c) / 7
...................................................................................................................................................
............................................................................................................................................. [1]
a b / 4 * a b + -
...................................................................................................................................................
............................................................................................................................................. [1]
a b + c d / /
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
5 (a) Calculate the shortest distance between the base and each of the other towns in the diagram
using Dijkstra’s algorithm.
Show your working and write your answers in the table provided.
Base
4
5
Town 1 2
1 Town 2
8
Town 3
7 3 Town 6
1
5
6
Town 4 Town 5
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answers
[5]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
Benefit 1 ...........................................................................................................................................
..........................................................................................................................................................
Benefit 2 ...........................................................................................................................................
..........................................................................................................................................................
Drawback 1 ......................................................................................................................................
..........................................................................................................................................................
Drawback 2 ......................................................................................................................................
..........................................................................................................................................................
[4]
A P
Y
B
C R
Z
Q
(a) Complete the truth table for the given logic circuit. Show your working.
............................................................................................................................................. [1]
(c) Write the Boolean expressions for the two outputs Y and Z in the truth table as
sum-of-products and state the purpose of each output.
Y = ............................................................................................................................................
Purpose ....................................................................................................................................
Z = ............................................................................................................................................
Purpose ....................................................................................................................................
[4]
8 (a) State two factors that may affect the performance of a sorting algorithm.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) The given algorithm is a simple bubble sort that arranges a set of scores stored in a one-
dimensional array into descending order, and orders the corresponding students’ names
stored into a two-dimensional array in the same order as the scores. All the arrays are indexed
from 1.
Name
Score
1 2
1 98 1 Smithfield Tom
2 97 2 Johnson Jane
… …
YearSize 249 ←
Flag ←
TRUE
WHILE Flag = TRUE
Flag FALSE←
FOR Student ←
1 TO YearSize - 1
IF Score[Student] < Score[Student + 1] THEN
Temp1 ←
Score[Student]
Temp2 ←
Name[Student,1]
Temp3 ←
Name[Student,2]
Score[Student] Score[Student + 1] ←
Name[Student,1] Name[Student + 1,1] ←
Name[Student,2] Name[Student + 1,2] ←
Score[Student + 1] Temp1 ←
Name[Student + 1,1] Temp2 ←
Name[Student + 1,2] Temp3 ←
Flag TRUE ←
ENDIF
NEXT Student
ENDWHILE
Write an algorithm, using pseudocode, that will perform the same task using an insertion sort.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [6]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Identify the programming paradigm for each of these program code examples.
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 the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
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 (LK/CB) 205788/1
© UCLES 2021 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(b) Calculate the denary value of the given binary floating-point number.
Show your working.
Mantissa Exponent
1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 1
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
Mantissa Exponent
0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(d) The denary number 513 cannot be stored accurately as a normalised floating-point number in
this computer system.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
(ii) Describe an alteration to the way floating-point numbers are stored to enable this number
to be stored accurately using the same total number of bits.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(i) SchoolDay to hold data about the days students are usually in school.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) WeekEnd to hold data about the days that are not school days.
...........................................................................................................................................
..................................................................................................................................... [1]
(c) Define, using pseudocode, the composite data type ClubMeet. This will hold data about club
members that includes:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
3 (a) Draw one line to connect each Operating System (OS) term to the most appropriate
description about it.
OS term Description
Interrupt handling
Scheduling
Transferring control to another routine when
a service is required
Virtual memory
Reading/writing same-size blocks of data
from/to secondary storage when required
[5]
(b) Explain how an interpreter executes a program without producing a complete translated
version of it.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
4 (a) (i) Explain why Reverse Polish Notation (RPN) is used to carry out the evaluation of
expressions.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
(ii) Identify, with reasons, a data structure that could be used to evaluate an expression
in RPN.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
(a – b) * (a + c) / 7
...................................................................................................................................................
............................................................................................................................................. [1]
a b / 4 * a b + -
...................................................................................................................................................
............................................................................................................................................. [1]
a b + c d / /
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
5 (a) Calculate the shortest distance between the base and each of the other towns in the diagram
using Dijkstra’s algorithm.
Show your working and write your answers in the table provided.
Base
4
5
Town 1 2
1 Town 2
8
Town 3
7 3 Town 6
1
5
6
Town 4 Town 5
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answers
[5]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
Benefit 1 ...........................................................................................................................................
..........................................................................................................................................................
Benefit 2 ...........................................................................................................................................
..........................................................................................................................................................
Drawback 1 ......................................................................................................................................
..........................................................................................................................................................
Drawback 2 ......................................................................................................................................
..........................................................................................................................................................
[4]
A P
Y
B
C R
Z
Q
(a) Complete the truth table for the given logic circuit. Show your working.
............................................................................................................................................. [1]
(c) Write the Boolean expressions for the two outputs Y and Z in the truth table as
sum-of-products and state the purpose of each output.
Y = ............................................................................................................................................
Purpose ....................................................................................................................................
Z = ............................................................................................................................................
Purpose ....................................................................................................................................
[4]
8 (a) State two factors that may affect the performance of a sorting algorithm.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) The given algorithm is a simple bubble sort that arranges a set of scores stored in a one-
dimensional array into descending order, and orders the corresponding students’ names
stored into a two-dimensional array in the same order as the scores. All the arrays are indexed
from 1.
Name
Score
1 2
1 98 1 Smithfield Tom
2 97 2 Johnson Jane
… …
YearSize 249 ←
Flag ←
TRUE
WHILE Flag = TRUE
Flag FALSE←
FOR Student ←
1 TO YearSize - 1
IF Score[Student] < Score[Student + 1] THEN
Temp1 ←
Score[Student]
Temp2 ←
Name[Student,1]
Temp3 ←
Name[Student,2]
Score[Student] Score[Student + 1] ←
Name[Student,1] Name[Student + 1,1] ←
Name[Student,2] Name[Student + 1,2] ←
Score[Student + 1] Temp1 ←
Name[Student + 1,1] Temp2 ←
Name[Student + 1,2] Temp3 ←
Flag TRUE ←
ENDIF
NEXT Student
ENDWHILE
Write an algorithm, using pseudocode, that will perform the same task using an insertion sort.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [6]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Identify the programming paradigm for each of these program code examples.
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 the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
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 (LO) 213987
© UCLES 2021 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(b) Calculate the denary value of the given binary floating-point number.
Show your working.
Mantissa Exponent
1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 1
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
Mantissa Exponent
0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(d) The denary number 513 cannot be stored accurately as a normalised floating-point number in
this computer system.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
(ii) Describe an alteration to the way floating-point numbers are stored to enable this number
to be stored accurately using the same total number of bits.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(i) SchoolDay to hold data about the days students are usually in school.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) WeekEnd to hold data about the days that are not school days.
...........................................................................................................................................
..................................................................................................................................... [1]
(c) Define, using pseudocode, the composite data type ClubMeet. This will hold data about club
members that includes:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
3 (a) Draw one line to connect each Operating System (OS) term to the most appropriate
description about it.
OS term Description
Interrupt handling
Scheduling
Transferring control to another routine when
a service is required
Virtual memory
Reading/writing same-size blocks of data
from/to secondary storage when required
[5]
(b) Explain how an interpreter executes a program without producing a complete translated
version of it.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
4 (a) (i) Explain why Reverse Polish Notation (RPN) is used to carry out the evaluation of
expressions.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
(ii) Identify, with reasons, a data structure that could be used to evaluate an expression
in RPN.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
(a – b) * (a + c) / 7
...................................................................................................................................................
............................................................................................................................................. [1]
a b / 4 * a b + -
...................................................................................................................................................
............................................................................................................................................. [1]
a b + c d / /
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
5 (a) Calculate the shortest distance between the base and each of the other towns in the diagram
using Dijkstra’s algorithm.
Show your working and write your answers in the table provided.
Base
4
5
Town 1 2
1 Town 2
8
Town 3
7 3 Town 6
1
5
6
Town 4 Town 5
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answers
[5]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
Benefit 1 ...........................................................................................................................................
..........................................................................................................................................................
Benefit 2 ...........................................................................................................................................
..........................................................................................................................................................
Drawback 1 ......................................................................................................................................
..........................................................................................................................................................
Drawback 2 ......................................................................................................................................
..........................................................................................................................................................
[4]
A P
Y
B
C R
Z
Q
(a) Complete the truth table for the given logic circuit. Show your working.
............................................................................................................................................. [1]
(c) Write the Boolean expressions for the two outputs Y and Z in the truth table as
sum-of-products and state the purpose of each output.
Y = ............................................................................................................................................
Purpose ....................................................................................................................................
Z = ............................................................................................................................................
Purpose ....................................................................................................................................
[4]
8 (a) State two factors that may affect the performance of a sorting algorithm.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) The given algorithm is a simple bubble sort that arranges a set of scores stored in a one-
dimensional array into descending order, and orders the corresponding students’ names
stored into a two-dimensional array in the same order as the scores. All the arrays are indexed
from 1.
Name
Score
1 2
1 98 1 Smithfield Tom
2 97 2 Johnson Jane
… …
YearSize 249 ←
Flag ←
TRUE
WHILE Flag = TRUE
Flag FALSE←
FOR Student ←
1 TO YearSize - 1
IF Score[Student] < Score[Student + 1] THEN
Temp1 ←
Score[Student]
Temp2 ←
Name[Student,1]
Temp3 ←
Name[Student,2]
Score[Student] Score[Student + 1] ←
Name[Student,1] Name[Student + 1,1] ←
Name[Student,2] Name[Student + 1,2] ←
Score[Student + 1] Temp1 ←
Name[Student + 1,1] Temp2 ←
Name[Student + 1,2] Temp3 ←
Flag TRUE ←
ENDIF
NEXT Student
ENDWHILE
Write an algorithm, using pseudocode, that will perform the same task using an insertion sort.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [6]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Identify the programming paradigm for each of these program code examples.
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 the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
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 (EF) 311847
© UCLES 2022 [Turn over
2
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Write the updated line of pseudocode from the type definition of LibraryRecord to
implement the change.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Every copy of every book is now uniquely identified by an accession number,
AccessionNumber, as it is added to the library. Each library record will include one or
more accession numbers. Each accession number is an integer.
Write the extra line of pseudocode needed in the type definition of LibraryRecord.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
01 type(leopard, wild).
02 type(lion, wild).
03 type(cheetah, wild).
04 type(savannah, hybrid).
05 type(persian, domestic).
06
07 hair(leopard, medium).
08 hair(lion, short).
09 hair(cheetah, medium).
10 hair(savannah, medium).
11 hair(persian, long).
12
13 spots(leopard, yes).
14 spots(lion, no).
15 spots(cheetah, yes).
16 spots(savannah, yes).
17 spots(persian, no).
Clause Meaning
01 A leopard is a type of wild cat.
08 A lion has short hair.
16 A savannah has spots.
(a) More facts are to be included. A caracal is a wild cat with short hair.
18 .............................................................................................................................................
19 .............................................................................................................................................
[2]
hair(Cat, medium)
returns
hair(Cat, long)
(c) (i) Write the goal, using the variable Pet, to find all the domestic cats.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Write the goal, using the variable WildSpotty, to find all the wild cats with spots.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
3 Data can be sent over networks using either circuit switching or packet switching.
Describe both methods of data transmission. Include a different advantage and disadvantage for
each method.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Advantage ........................................................................................................................................
..........................................................................................................................................................
Disadvantage ...................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Advantage ........................................................................................................................................
..........................................................................................................................................................
Disadvantage ...................................................................................................................................
..........................................................................................................................................................
[8]
4 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are
two types of processor.
RISC .........................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
CISC .........................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[2]
j = 3
k = 2
m = 10
n = (j + k)/(j - k)
p = m * (m - j * k)
(a) Write the Reverse Polish Notation (RPN) for the expression:
(j + k)/(j - k)
............................................................................................................................................. [2]
(b) (i) Show the changing contents of the stack as the value for p is calculated from its RPN
expression:
m m j k * - *
[4]
(ii) Describe the main steps in the evaluation of this RPN expression using a stack.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
Describe two benefits and one limitation of using a virtual machine for this purpose.
Benefit 1 ...........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Benefit 2 ...........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Limitation ..........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[6]
7 A program is to be written using Object-Oriented Programming (OOP) for a shop that sells knitting
yarn. There are three types of yarn: acrylic, wool or mix.
• Name
• Colour
• Batch code
• Weight
• Number of balls of yarn in stock (can be edited)
• Type of yarn
Each type of yarn has a method that will display all the information about the yarn.
(a) Complete this class inheritance diagram to show the properties, methods and inheritance.
Yarn
Name: STRING
Colour: STRING
BatchCode: STRING
Weight: INTEGER
NumberBalls: INTEGER
Type: STRING
Constructor()
EditNumberBalls()
YarnInfo()
.......................................... ..........................................
[5]
(b) Describe what is meant by the terms properties, methods and inheritance.
Properties .................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Methods ....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Inheritance ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[6]
8 A message is to be sent securely. Software uses a key to encrypt the message before it is sent.
1 ........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
[2]
1 ........................................................................................................................................
2 ........................................................................................................................................
[2]
The use of quantum cryptography is being considered for the secure exchange.
1 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
[2]
1 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
[2]
BLANK PAGE
9 The table shows assembly language instructions for a processor that has one general purpose
register, the Accumulator (ACC).
Instruction Explanation
Label Opcode Operand
LDM #n Load the number n to ACC
LDD <address> Load the contents of the given address to ACC
The address to be used is at the given address
LDI <address>
Load the contents of this second address to ACC
ADD <address> Add the contents of the given address to the ACC
STO <address> Store the contents of the ACC at the given address
Gives a symbolic address <label> to the memory
<label>: <data> location with the contents <data>
<label> can be used in place of <address>
# denotes a denary number, e.g. #123
(a) The address 500 contains the value 100 and the address 100 contains the value 20.
State the addressing mode and the contents of ACC after each instruction has been executed.
(b) Use only the given instruction set to write assembly language code to:
• use the constant 20 which needs to be stored
• add this constant to the value stored in the address contained in the variable Y
• store the result in variable Z.
Instruction
Label Opcode Operand
[7]
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.
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 (CE/SG) 303765/2
© UCLES 2022 [Turn over
2
TYPE BuildingRecord
DECLARE BuildingID : INTEGER
DECLARE BuildingGroup : STRING
DECLARE OwnerName : STRING
DECLARE BuildingAddress : STRING
DECLARE DateLastSold : DATE
DECLARE PriceLastSold : REAL
ENDTYPE
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) The type definition for BuildingRecord is changed. The data type for BuildingGroup is
changed to an enumerated type, BuildingType, with values of house, bungalow, apartment
and farm.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...........................................................................................................................................
..................................................................................................................................... [1]
...........................................................................................................................................
..................................................................................................................................... [1]
(c) The program is to be rewritten using Object-Oriented Programming (OOP). The data type
BuildingRecord is to be changed to a class, BuildingClass.
������������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������� [1]
������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������� [2]
01 teaches(alan, mathematics).
02 teaches(ioana, geography).
03 teaches(nina, history).
04 teaches(alan, statistics).
05
06 studies(ahmed, history).
07 studies(freya, history).
08 studies(kim, history).
09 studies(freya, geography).
10 studies(hua, mathematics).
11 studies(hua, statistics).
12 studies(hua, geography).
13
14 tutors(alan, kim).
15 tutors(alan, hua).
16 tutors(alan, freya).
17 tutors(nina, ahmed).
Clause Meaning
01 Alan teaches mathematics.
06 Ahmed studies history.
14 Alan is Kim’s tutor.
(a) More facts are to be included. Sam studies history and Nina is his tutor.
18 .............................................................................................................................................
19 .............................................................................................................................................
[2]
studies(Student, history)
returns
studies(Student, geography)
(c) Write the goal, using the variable X, to find all the students who have a tutor that teaches
them. For example, Hua has Alan for a tutor and is also taught mathematics by Alan.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
3 The TCP/IP protocol suite has four layers. The application layer provides user services.
(a) Identify two protocols used by this layer. Describe the use of each protocol.
Protocol 1 .................................................................................................................................
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Protocol 2 .................................................................................................................................
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Identify two other layers of the TCP/IP protocol suite. Describe the function of each layer.
Layer 1 ......................................................................................................................................
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Layer 2 ......................................................................................................................................
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
• a variable
• an unsigned integer
• a letter
• a digit
• an operator
• an assignment statement.
variable
letter unsigned integer
unsigned integer
digit digit
letter digit
X 1
Y 2
Z 3
operator
+
*
assignment
statement
variable = variable operator variable
(a) The following assignment statements are invalid. State the reason in each case.
X1 = Y2 – 12
Reason .....................................................................................................................................
...................................................................................................................................................
Z = Y12 + Z1
Reason .....................................................................................................................................
...................................................................................................................................................
[2]
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown.
...................................................................................................................................................
...................................................................................................................................................
<letter> ::= X | Y | Z
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[5]
(c) The syntax of an assignment statement is changed to allow each of the variables on the
right-hand side of the ‘=’ symbol to be either a variable or an unsigned integer.
(i) Draw a syntax diagram for the new syntax of the assignment statement.
[3]
(ii) Write the Backus-Naur Form (BNF) for your syntax diagram.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
5 There are four basic categories of computer architecture. Single Instruction Single Data (SISD) is
one architecture.
Architecture 1 ...................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Architecture 2 ...................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Architecture 3 ...................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[6]
6 A logic circuit has two inputs A and B, and two outputs E and F.
A
E
INPUT OUTPUT
A B E F
0 0
0 1
1 0
1 1
[2]
..................................................................................................................................... [1]
Purpose of E .....................................................................................................................
Purpose of F ......................................................................................................................
[2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) (i) Explain how a digital signature is produced before the message is sent.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
(ii) Explain how the digital signature can be checked on receipt to ensure that the message
has not been altered during transmission.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
8 A binary search or a linear search can be used to look for a specific value in an array.
INPUT ValueToFind
Found ←
FALSE
Index 0 ←
MaxIndex ←
.........................................................................................................................
REPEAT
IF MyList[Index] = ValueToFind THEN
Found TRUE ←
ENDIF
Index ←
.........................................................................................................................
UNTIL Found OR Index > MaxIndex
IF Found THEN
OUTPUT "Value found at position ", Index
ELSE
OUTPUT ..............................................................................................................................
ENDIF
[4]
...........................................................................................................................................
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
(iii) Explain how the performance of a binary search varies according to the number of values
in the array.
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [1]
(c) Compare the performance of the algorithms for a binary search and a linear search using
Big O notation for order of time complexity.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
9 State the reasons for including exception handling routines when writing a program.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
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.
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 (LK) 303735/2
© UCLES 2022 [Turn over
2
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Write the updated line of pseudocode from the type definition of LibraryRecord to
implement the change.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Every copy of every book is now uniquely identified by an accession number,
AccessionNumber, as it is added to the library. Each library record will include one or
more accession numbers. Each accession number is an integer.
Write the extra line of pseudocode needed in the type definition of LibraryRecord.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
01 type(leopard, wild).
02 type(lion, wild).
03 type(cheetah, wild).
04 type(savannah, hybrid).
05 type(persian, domestic).
06
07 hair(leopard, medium).
08 hair(lion, short).
09 hair(cheetah, medium).
10 hair(savannah, medium).
11 hair(persian, long).
12
13 spots(leopard, yes).
14 spots(lion, no).
15 spots(cheetah, yes).
16 spots(savannah, yes).
17 spots(persian, no).
Clause Meaning
01 A leopard is a type of wild cat.
08 A lion has short hair.
16 A savannah has spots.
(a) More facts are to be included. A caracal is a wild cat with short hair.
18 .............................................................................................................................................
19 .............................................................................................................................................
[2]
hair(Cat, medium)
returns
hair(Cat, long)
(c) (i) Write the goal, using the variable Pet, to find all the domestic cats.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Write the goal, using the variable WildSpotty, to find all the wild cats with spots.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
3 Data can be sent over networks using either circuit switching or packet switching.
Describe both methods of data transmission. Include a different advantage and disadvantage for
each method.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Advantage ........................................................................................................................................
..........................................................................................................................................................
Disadvantage ...................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Advantage ........................................................................................................................................
..........................................................................................................................................................
Disadvantage ...................................................................................................................................
..........................................................................................................................................................
[8]
4 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are
two types of processor.
RISC .........................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
CISC .........................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[2]
j = 3
k = 2
m = 10
n = (j + k)/(j - k)
p = m * (m - j * k)
(a) Write the Reverse Polish Notation (RPN) for the expression:
(j + k)/(j - k)
............................................................................................................................................. [2]
(b) (i) Show the changing contents of the stack as the value for p is calculated from its RPN
expression:
m m j k * - *
[4]
(ii) Describe the main steps in the evaluation of this RPN expression using a stack.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
Describe two benefits and one limitation of using a virtual machine for this purpose.
Benefit 1 ...........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Benefit 2 ...........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Limitation ..........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[6]
7 A program is to be written using Object-Oriented Programming (OOP) for a shop that sells knitting
yarn. There are three types of yarn: acrylic, wool or mix.
• Name
• Colour
• Batch code
• Weight
• Number of balls of yarn in stock (can be edited)
• Type of yarn
Each type of yarn has a method that will display all the information about the yarn.
(a) Complete this class inheritance diagram to show the properties, methods and inheritance.
Yarn
Name: STRING
Colour: STRING
BatchCode: STRING
Weight: INTEGER
NumberBalls: INTEGER
Type: STRING
Constructor()
EditNumberBalls()
YarnInfo()
.......................................... ..........................................
[5]
(b) Describe what is meant by the terms properties, methods and inheritance.
Properties .................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Methods ....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Inheritance ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[6]
8 A message is to be sent securely. Software uses a key to encrypt the message before it is sent.
1 ........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
[2]
1 ........................................................................................................................................
2 ........................................................................................................................................
[2]
The use of quantum cryptography is being considered for the secure exchange.
1 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
[2]
1 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
[2]
BLANK PAGE
9 The table shows assembly language instructions for a processor that has one general purpose
register, the Accumulator (ACC).
Instruction Explanation
Label Opcode Operand
LDM #n Load the number n to ACC
LDD <address> Load the contents of the given address to ACC
The address to be used is at the given address
LDI <address>
Load the contents of this second address to ACC
ADD <address> Add the contents of the given address to the ACC
STO <address> Store the contents of the ACC at the given address
Gives a symbolic address <label> to the memory
<label>: <data> location with the contents <data>
<label> can be used in place of <address>
# denotes a denary number, e.g. #123
(a) The address 500 contains the value 100 and the address 100 contains the value 20.
State the addressing mode and the contents of ACC after each instruction has been executed.
(b) Use only the given instruction set to write assembly language code to:
• use the constant 20 which needs to be stored
• add this constant to the value stored in the address contained in the variable Y
• store the result in variable Z.
Instruction
Label Opcode Operand
[7]
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.
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 (KS) 327186
© UCLES 2023 [Turn over
2
1 Numbers are stored in two different computer systems by using floating-point representation.
System 1 uses:
System 2 uses:
(a) Calculate the normalised floating-point representation of 113.75 and show how it would be
represented in each of these two systems.
System 1
Mantissa Exponent
System 2
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Explain the problem that occurred in part (a) when representing the number in system 2.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
2 (a) Draw one line from each machine learning category to its most appropriate description.
(b) Describe the purpose of both the A* algorithm and Dijkstra’s algorithm.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
3 (a) A hashing algorithm is used to calculate storage locations for records in a random access file.
It calculates hash values by using the function modulus 3.
1050
1025
[2]
(b) Describe what happens, in relation to the storage or retrieval of a record in the file, when
the calculated hash value is a duplicate of a previously calculated hash value for a different
record key.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Give appropriate type declaration statements for each, including appropriate names.
(a) A data type to hold a set of prime numbers below 20. These prime numbers are:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) A data type to point to a day in the week, for example Monday.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
5 (a) State, with a reason, where it would be appropriate to use circuit switching.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
Drawback 1 ...............................................................................................................................
...................................................................................................................................................
Drawback 2 ...............................................................................................................................
...................................................................................................................................................
[4]
operator digit
+ 0
– 1
* 2
/ 3
symbol
$ 4
% 5
& 6
@ 7
# 8
letter 9
A
password
letter digit symbol
(a) State whether each of the following passwords is valid or invalid and give a reason for your
choice.
DPAD99$ ...................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
DAD#95 .....................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
ADY123? ...................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
[3]
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown.
...................................................................................................................................................
...................................................................................................................................................
[1]
(c) An identifier begins with one or more letters, followed by zero digits or one digit or more
digits.
Valid letters and digits are shown in the syntax diagrams on page 6.
[4]
7 (a) Complete the Karnaugh map (K-map) for the following Boolean expression.
AB
CD 00 01 11 10
00
01
11
10
[2]
(b) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(c) Write the Boolean logic expression from your answer to part (b) as a simplified
sum-of-products.
Z = ............................................................................................................................................
............................................................................................................................................. [2]
(d) Use Boolean algebra to give your answer to part (c) in its simplest form.
Z = ...................................................................................................................................... [1]
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [3]
9 (a) Encryption is used to alter data into a form that makes it meaningless if intercepted.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
Drawback 1 ...............................................................................................................................
...................................................................................................................................................
Drawback 2 ...............................................................................................................................
...................................................................................................................................................
[4]
10 The pseudocode algorithm shown copies an active accounts text file ActiveFile.txt to an
archive accounts text file ArchiveFile.txt, one line at a time. Any blank lines found in the
active accounts text file are replaced with the words "Account not present" in the archive
accounts text file.
..........................................................................................................................................................
..........................................................................................................................................................
CLOSEFILE "ArchiveFile.txt"
[5]
11 Pseudocode is to be written to implement a queue Abstract Data Type (ADT) with items of the
string data type. This will be implemented using the information in the table.
A constant, with identifier MaxSize, limits the size of the queue to 60 items.
(a) Write the pseudocode to declare MaxSize, FrontPointer, RearPointer, Length and
Queue.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
© UCLES 2023 9618/31/M/J/23
11
(b) Complete the following pseudocode for the function Dequeue to remove the front item from
the queue.
Item ← .......................................................................................................................
......................................................................................................................................
IF Length = 0 THEN
CALL Initialise // reset the pointers
ELSE
IF FrontPointer > MaxSize THEN
....................................................................................................................... ← 1
ENDIF
ENDIF
ELSE
OUTPUT "The print queue was empty – error!"
Item ← ""
ENDIF
RETURN Item
ENDFUNCTION
[4]
(c) Explain how a new element can be added to the queue if it is implemented using two stacks.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) A Fibonacci sequence is a series of numbers formed by adding together the two preceding
numbers, for example:
0, 1, 1, 2, …
This function calculates and returns values in the Fibonacci sequence and uses recursion.
Complete the trace table for the function when it is called as Fib(5).
[5]
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.
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 (RW/FC) 313065/3
© UCLES 2023 [Turn over
2
(a) Write the normalised floating‑point representation of the following binary number using this
system:
0101010.111
Show your working.
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Mantissa Exponent
[2]
(b) Describe the reason why the normalised form of the following binary number cannot be
represented accurately using this system.
0101011.111001
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
2 (a) Describe how records are organised and accessed in a sequential file.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) A hashing algorithm is used to calculate storage locations for records in a random access file.
The algorithm calculates hash values using the function modulus 5.
3003 3
1029
7630
[2]
digit letter
0 A
1 C
2 E
3 G
4 I
5 K
6 M
7 O
8 Q
9 S
Y
variable
letter digit
(a) State whether each variable is valid or invalid and give a reason for your choice in each case.
9SW ...........................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
UWY ...........................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
[2]
Complete the Backus‑Naur Form (BNF) for <word> and use this to complete the BNF for
<variable>.
...................................................................................................................................................
...................................................................................................................................................
[3]
(c) Vehicle registrations must begin with two letters and be followed by one, two or three digits.
Valid letters and digits are shown in the syntax diagrams on page 4.
...........................................................................................................................................
..................................................................................................................................... [1]
[3]
4 Draw one line from each Object‑Oriented Programming (OOP) term to its most appropriate
description.
Setters
enables the defining of a new class
that inherits from a parent class
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain the differences between symmetric and asymmetric cryptography when encrypting
and decrypting data.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
6 (a) Write pseudocode statements to declare the composite data type, TAppointments, to hold
data about patients for a dental clinic. It will include for each patient:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
(b) This pseudocode algorithm reads dental records stored in a random file using the user‑defined
data type TAppointments and prints the contents of the file, one record at a time.
OPENFILE .................................................................................................................
.......................................................................................... 1
REPEAT
SEEK DentalFile, Count
.....................................................................................................................
OUTPUT DentalRecord[Count]
Count Count + 1
.....................................................................(DentalFile)
.............................................................................................
[5]
7 (a) State two examples of where it would be appropriate to use packet switching.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Give four differences between circuit switching and packet switching.
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
3 ................................................................................................................................................
...................................................................................................................................................
4 ................................................................................................................................................
...................................................................................................................................................
[4]
8 (a) Describe the use of pipelining in Reduced Instruction Set Computers (RISC).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Each stage is carried out using a different register when pipelining is used.
Complete the table to show how a program consisting of six instructions would be completed
using pipelining.
Clock cycles
1 2 3 4 5 6 7 8 9 10 11 12
IF
Processor stages
ID
OF
IE
WB
[4]
INPUT OUTPUT
A B C D Z
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 0
0 1 0 1 0
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
(a) Write the Boolean logic expression that corresponds to the given truth table as the
sum‑of‑products.
Z = ............................................................................................................................................
............................................................................................................................................. [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 a simplified
sum‑of‑products.
Z = ............................................................................................................................................
............................................................................................................................................. [2]
(e) Use Boolean algebra to give your answer to part (d) in its simplest form.
Z = ...................................................................................................................................... [1]
............................................................................................................................................. [1]
(b) Calculate the path that takes the shortest time to travel from the Begin node to the End node,
using the A* algorithm.
Show your working in the table provided.
12
g=5 Begin
h=8 4 11
A 5
D
6 7
7 C
6 B
8 6
2
8 7
E
5
7 G
End
7 1
4
1 F
Cost from
Destination Heuristic Total
Start node start node
node (h) (f = g + h)
(g)
Begin Begin 0 12 12
Begin A 5 8 13
Final path
[5]
© UCLES 2023 9618/32/M/J/23
13
11 (a) The pseudocode shown represents a queue Abstract Data Type (ADT) with procedures for
initialisation and to add new items. It is incomplete.
CONSTANT MaxLength = 50
DECLARE FrontPointer : INTEGER
DECLARE RearPointer : INTEGER
DECLARE Length : INTEGER
DECLARE Queue : ARRAY[0 : MaxLength – 1] OF STRING
// initialisation of queue
PROCEDURE Initialise
FrontPointer ‑1
.....................................................................................................................
................................................................. 0
ENDPROCEDURE
IF ............................................................................................. THEN
RearPointer ..................................................................................
IF RearPointer > MaxLength – 1 THEN
RearPointer 0
ENDIF
................................................................................................................
Length Length + 1
ENDIF
ENDPROCEDURE
(i) Study the pseudocode and insert the identifiers to complete this table.
(b) Explain the reasons why a queue ADT works better than a stack ADT in organising print jobs.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
BLANK PAGE
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.
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 (KN) 313066/2
© UCLES 2023 [Turn over
2
1 Numbers are stored in two different computer systems by using floating-point representation.
System 1 uses:
System 2 uses:
(a) Calculate the normalised floating-point representation of 113.75 and show how it would be
represented in each of these two systems.
System 1
Mantissa Exponent
System 2
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Explain the problem that occurred in part (a) when representing the number in system 2.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
2 (a) Draw one line from each machine learning category to its most appropriate description.
(b) Describe the purpose of both the A* algorithm and Dijkstra’s algorithm.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
3 (a) A hashing algorithm is used to calculate storage locations for records in a random access file.
It calculates hash values by using the function modulus 3.
1050
1025
[2]
(b) Describe what happens, in relation to the storage or retrieval of a record in the file, when
the calculated hash value is a duplicate of a previously calculated hash value for a different
record key.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Give appropriate type declaration statements for each, including appropriate names.
(a) A data type to hold a set of prime numbers below 20. These prime numbers are:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) A data type to point to a day in the week, for example Monday.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
5 (a) State, with a reason, where it would be appropriate to use circuit switching.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
Drawback 1 ...............................................................................................................................
...................................................................................................................................................
Drawback 2 ...............................................................................................................................
...................................................................................................................................................
[4]
operator digit
+ 0
– 1
* 2
/ 3
symbol
$ 4
% 5
& 6
@ 7
# 8
letter 9
A
password
letter digit symbol
(a) State whether each of the following passwords is valid or invalid and give a reason for your
choice.
DPAD99$ ...................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
DAD#95 .....................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
ADY123? ...................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
[3]
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown.
...................................................................................................................................................
...................................................................................................................................................
[1]
(c) An identifier begins with one or more letters, followed by zero digits or one digit or more
digits.
Valid letters and digits are shown in the syntax diagrams on page 6.
[4]
7 (a) Complete the Karnaugh map (K-map) for the following Boolean expression.
AB
CD 00 01 11 10
00
01
11
10
[2]
(b) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(c) Write the Boolean logic expression from your answer to part (b) as a simplified
sum-of-products.
Z = ............................................................................................................................................
............................................................................................................................................. [2]
(d) Use Boolean algebra to give your answer to part (c) in its simplest form.
Z = ...................................................................................................................................... [1]
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [3]
9 (a) Encryption is used to alter data into a form that makes it meaningless if intercepted.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
Drawback 1 ...............................................................................................................................
...................................................................................................................................................
Drawback 2 ...............................................................................................................................
...................................................................................................................................................
[4]
10 The pseudocode algorithm shown copies an active accounts text file ActiveFile.txt to an
archive accounts text file ArchiveFile.txt, one line at a time. Any blank lines found in the
active accounts text file are replaced with the words "Account not present" in the archive
accounts text file.
..........................................................................................................................................................
..........................................................................................................................................................
CLOSEFILE "ArchiveFile.txt"
[5]
11 Pseudocode is to be written to implement a queue Abstract Data Type (ADT) with items of the
string data type. This will be implemented using the information in the table.
A constant, with identifier MaxSize, limits the size of the queue to 60 items.
(a) Write the pseudocode to declare MaxSize, FrontPointer, RearPointer, Length and
Queue.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
© UCLES 2023 9618/33/M/J/23
11
(b) Complete the following pseudocode for the function Dequeue to remove the front item from
the queue.
Item ← .......................................................................................................................
......................................................................................................................................
IF Length = 0 THEN
CALL Initialise // reset the pointers
ELSE
IF FrontPointer > MaxSize THEN
....................................................................................................................... ← 1
ENDIF
ENDIF
ELSE
OUTPUT "The print queue was empty – error!"
Item ← ""
ENDIF
RETURN Item
ENDFUNCTION
[4]
(c) Explain how a new element can be added to the queue if it is implemented using two stacks.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) A Fibonacci sequence is a series of numbers formed by adding together the two preceding
numbers, for example:
0, 1, 1, 2, …
This function calculates and returns values in the Fibonacci sequence and uses recursion.
Complete the trace table for the function when it is called as Fib(5).
[5]
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.
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 (PQ) 341261
© UCLES 2024 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
(a) Calculate the denary value of the given normalised floating-point number.
Mantissa Exponent
0 1 0 0 1 1 1 1 0 0 0 0 1 0 0 1
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(a) Complete the diagram to show the correct order for these layers.
[2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Outline one protocol that is associated with the Application layer.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Write pseudocode statements to declare the record data type FootballClub to hold data
about football clubs in a league, to include:
• name of team
• date team joined the league
• main telephone number
• name of the manager
• number of members
• current position in the league.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain how the sequential method of file access is applied to files with serial organisation
and to files with sequential organisation.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
5 2 + 9 3 - / 3 *
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
((7 + 3) - (2 * 8)) / 6
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
a b - c d + * e /
when
a = 17, b = 5, c = 7, d = 3 and e = 10
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
A Q
P R
B Z
(a) Complete the truth table for the given logic circuit.
Working space
A B C P Q R S Z
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[3]
(b) Write the Boolean expression that corresponds to the logic circuit as a sum-of-products.
Z = ............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) (i) Complete the Karnaugh map (K-map) for the Boolean expression:
BC
00 01 11 10
A
[2]
(ii) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(iii) Write the Boolean expression from your answer to part (c)(ii) as a simplified
sum-of-products.
...........................................................................................................................................
..................................................................................................................................... [1]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
8 A declarative programming language is used to represent the features that are available and the
features that are unavailable on different body styles of a car.
01 feature(sunroof).
02 feature(automatic_tailgate).
03 feature(heated_seats).
04 feature(extra_seats).
05 feature(reversing_camera).
06 feature(dashboard_camera).
07 feature(air_conditioning).
08 feature(heated_windscreen).
09 feature(satnav).
10 bodystyle(saloon).
11 bodystyle(hatchback).
12 bodystyle(estate).
13 bodystyle(minivan).
14 bodystyle(convertible).
15 available(sunroof, hatchback).
16 available(sunroof, minivan).
17 available(reversing_camera, hatchback).
18 available(extra_seats, minivan).
19 available(reversing_camera, saloon).
20 unavailable(sunroof, convertible).
21 unavailable(automatic_tailgate, saloon).
22 unavailable(extra_seats, hatchback).
Clause Meaning
01 Sunroof is a feature.
10 Saloon is a body style.
15 Sunroof is available on a hatchback.
20 Sunroof is unavailable on a convertible.
(a) Sliding doors is a feature that is available on a minivan but unavailable on a hatchback.
23 .............................................................................................................................................
24 .............................................................................................................................................
25 .............................................................................................................................................
[3]
available(Options, saloon)
returns
Options = reversing_camera
available(Options, hatchback)
(c) F may be available for B if F is a feature and B is a body style and F is not unavailable for that
body style.
may_choose_option(F, B)
IF .............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [3]
10 (a) State a condition that must be true for an array to be searchable for a binary search.
...................................................................................................................................................
............................................................................................................................................. [1]
(b) Complete the given pseudocode to find an item in a 1D array Names of type STRING using a
binary search.
...................................................................................................................................................
NotInList ← FALSE
WHILE ................................................ AND ................................................
CurrentItem ←
(TopOfList + EndOfList) DIV 2
IF ........................................................................................................... THEN
Found ← TRUE
ELSE
IF TopOfList >= EndOfList THEN
...........................................................................................................
ELSE
IF ToFind > Names[CurrentItem] THEN
...........................................................................................................
ELSE
EndOfList ←
CurrentItem – 1
ENDIF
ENDIF
ENDIF
ENDWHILE
IF Found = TRUE THEN
OUTPUT "Item found at position ", CurrentItem, " in array"
ELSE
OUTPUT "Item not in array"
ENDIF
[5]
(c) Describe the performance of a binary search in relation to the number of data items in the
array being searched. Refer to Big O notation in your answer.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
11 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are
two types of processor.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Outline the process of interrupt handling as it could be applied to RISC or CISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(c) Explain how pipelining affects interrupt handling for RISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
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.
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 (DE) 352034/4
© UCLES 2024 [Turn over
2
1 (a) Describe the effect of changing the allocation of bits used for the mantissa and for the
exponent in a floating-point number with a fixed total number of bits.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Real numbers are stored in a computer, using floating-point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
2 (a) Outline why protocols are essential for communication between computers.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) State the names of two different protocols associated with the sending and receiving of
emails between computers.
Sending ....................................................................................................................................
Receiving ..................................................................................................................................
[2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
3 (a) Explain what is meant by the term non-composite data type and give an example of a
non-composite data type.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Example ....................................................................................................................................
[3]
(b) Write pseudocode statements to declare the set data type EvenNumbers to hold this set of
even numbers between 2 and 12:
2, 4, 6, 8, 10, 12
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
4 Sheila has a customer called Fred. Fred wants to send Sheila a confidential document as part of a
transaction.
Explain how Fred uses asymmetric encryption to send his document securely.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
(7 – 2 + 8) / (9 – 5)
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
a d + a b + c - *
when
a = 6, b = 3, c = 7 and d = 9
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
b a c - + d b + * c /
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
P
A
S
Q
B Z
T
R
C
(a) Complete the truth table for the given logic circuit.
Show your working.
Working space
A B C P Q R S T Z
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[3]
(b) Write the Boolean expression that corresponds to the logic circuit as a sum-of-products.
Z = ............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) (i) Complete the Karnaugh map (K-map) for this Boolean expression:
–– – – – – –– –
A.B.C + A.B.C + A.B.C + A.B.C + A.B.C + A.B.C
BC
A 00 01 11 10
[2]
(ii) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(iii) Write the Boolean expression from your answer to part c(ii) as a simplified
sum-of-products.
...........................................................................................................................................
..................................................................................................................................... [1]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain how direct access is used to locate a specific record in sequential files and random
files.
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
8 (a) Complete the pseudocode to find an item in a 1D array Widgets of type STRING, using a
linear search.
…………………………………………………………………………………………………………………………………
NotInList FALSE
Count TopOfList
IF ……………………………………………………………………………………………………………………………… THEN
Found TRUE
ENDIF
Count Count + 1
IF …………………………………………………………………………………………………………………………… THEN
NotInList TRUE
ENDIF
ENDWHILE
IF Found = TRUE THEN
OUTPUT "Item found at position ", Count - 1, " in array"
ELSE
OUTPUT "Item not in array"
ENDIF
[4]
(b) Compare the methods used by the linear and binary search algorithms to find an item in an
array. Refer to Big O notation in your answer.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Limitation 1 ...............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Limitation 2 ...............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Explain the roles of the host operating system and the guest operating system as used in a
computer system running a virtual machine.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
10 A declarative programming language is used to allow clients to choose daily activities at the
beach.
01 activity(paddleboarding).
02 activity(sailing).
03 activity(rowing).
04 activity(kayaking).
05 activity(jetskiing).
06 client(stevie).
07 client(antonio).
08 client(henry).
09 client(eliza).
10 client(rebeka).
11 client(danny).
12 client(erik).
13 client(simone).
14 client(petra).
15 client(frankie).
16 choice(petra, rowing).
17 choice(frankie, sailing).
18 choice(erik, sailing).
19 choice(eliza, rowing).
20 choice(stevie, jetskiing).
21 choice(henry, sailing).
22 done(henry, jetskiing).
23 done(rebeka, jetskiing).
24 done(antonio, kayaking).
Clause Meaning
01 Paddle boarding is an activity.
06 Stevie is a client.
16 Petra has chosen rowing.
22 Henry has already done jet skiing.
(a) Jane is a client who would like to choose the activity surfing and she has already done sailing.
25 .............................................................................................................................................
26 .............................................................................................................................................
27 .............................................................................................................................................
28 .............................................................................................................................................
[4]
choice(List, rowing)
returns
choice(List, sailing)
(c) C is a client who would like to choose A if A is an activity and C has not already done A.
may_choose_activity(C, A)
IF ............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [3]
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.
¬Wz> 3mKsgy=<5 W
¬`E¤ifbpWBtN
¥5u5Eu5e¥U5 eUEU
* 0 5 3 4 4 0 8 3 9 9 *
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 (LK/CGW) 329375/5
© UCLES 2024 [Turn over
* 0019655539702 *
1 Real numbers are stored in a computer system using floating-point representation with:
(a) Calculate the denary value of the given normalised floating-point number.
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
Mantissa Exponent
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
[3]
ĬÕú¾Ġ³íËóçù½Ė¹ĕ·Ğ×
© UCLES 2024 ĬĚĜßÈĨÝÄÙāð÷²ÝòÌÖĂ
ĥĥĥĕõõąĕąĥµĕµÅÅĕĥÕ
9618/33/M/J/24
* 0019655539703 *
DO NOT WRITE IN THIS MARGIN
3
, ,
(a) Complete the diagram to show the correct order for these layers.
DO NOT WRITE IN THIS MARGIN
[2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [2]
(c) Outline one protocol that is associated with the Application layer.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [3]
Ĭ×ú¾Ġ³íËóçù½Ė¹ė·Ğ×
© UCLES 2024 ĬĚěàÀĢá´à÷ā²ĦÕæÌæĂ
ĥĥĕÕµĕĥõĕĕĥĕµååÕõÕ
9618/33/M/J/24 [Turn over
* 0019655539704 *
(b) Write pseudocode statements to declare the record data type FootballClub to hold data
about football clubs in a league, to include:
• name of team
• date team joined the league
• main telephone number
• name of the manager
• number of members
• current position in the league.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain how the sequential method of file access is applied to files with serial organisation
and to files with sequential organisation.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
ĬÕú¾Ġ³íËóçù½Ė»ĕ·Ġ×
© UCLES 2024 ĬĚěÝÀĬÓµÛùĊ¹ÈùĈÜÎĂ
ĥÕÅÕõĕĥÕõµĕĕõåąÕĥÕ
9618/33/M/J/24
* 0019655539705 *
DO NOT WRITE IN THIS MARGIN
5
, ,
5 2 + 9 3 - / 3 *
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
DO NOT WRITE IN THIS MARGIN
((7 + 3) - (2 * 8)) / 6
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
DO NOT WRITE IN THIS MARGIN
a b - c d + * e /
when
a = 17, b = 5, c = 7, d = 3 and e = 10
Show the changing contents of the stack as the RPN expression is evaluated.
DO NOT WRITE IN THIS MARGIN
[4]
DO NOT WRITE IN THIS MARGIN
Ĭ×ú¾Ġ³íËóçù½Ė»ė·Ġ×
© UCLES 2024 ĬĚĜÞÈĞÏÅÞÿ÷ðĔāÔÜÞĂ
ĥÕµĕµõąµĥÅÅĕõÅĥĕõÕ
9618/33/M/J/24 [Turn over
* 0019655539706 *
A Q
P R
B Z
(a) Complete the truth table for the given logic circuit.
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 1
[3]
(b) Write the Boolean expression that corresponds to the logic circuit as a sum-of-products.
Z = ............................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
............................................................................................................................................. [2]
ĬÙú¾Ġ³íËóçù½Ėºė¶Ğ×
© UCLES 2024 ĬĚěÞËĨ·¿æČĆąôù±ôÎĂ
ĥąĕĕµÕąĕååĥĕµÅÅÕåÕ
9618/33/M/J/24
* 0019655539807 *
DO NOT WRITE IN THIS MARGIN
7
, ,
(c) (i) Complete the Karnaugh map (K-map) for the Boolean expression:
BC
00 01 11 10
A
1
DO NOT WRITE IN THIS MARGIN
[2]
(ii) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(iii) Write the Boolean expression from your answer to part (c)(ii) as a simplified
sum-of-products.
...........................................................................................................................................
..................................................................................................................................... [1]
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
DO NOT WRITE IN THIS MARGIN
ĬÛù¿Ġ³íËóçù½Ė¹ė¶Ğ×
© UCLES 2024 ĬĚěàÈīÈéÕĉú²Ë¹±ÄæĂ
ĥµµÕµõåõÅåÅĕõąÅĕĕÕ
9618/33/M/J/24 [Turn over
* 0019655539808 *
8 A declarative programming language is used to represent the features that are available and the
features that are unavailable on different body styles of a car.
01 feature(sunroof).
02 feature(automatic_tailgate).
03 feature(heated_seats).
04 feature(extra_seats).
05 feature(reversing_camera).
06 feature(dashboard_camera).
07 feature(air_conditioning).
08 feature(heated_windscreen).
Clause Meaning
01 Sunroof is a feature.
10 Saloon is a body style.
15 Sunroof is available on a hatchback.
20 Sunroof is unavailable on a convertible.
23 .............................................................................................................................................
24 .............................................................................................................................................
25 .............................................................................................................................................
[3]
DO NOT WRITE IN THIS MARGIN
ĬÙù¿Ġ³íËóçù½Ė»ĕ¶Ġ×
© UCLES 2024 ĬĚěÝÈġ¶àâćñ¹ĩĕēÔÎĂ
ĥąĥÕõõåÕåąµĕµąĥĕąÕ
9618/33/M/J/24
* 0019655539809 *
DO NOT WRITE IN THIS MARGIN
9
, ,
available(Options, saloon)
returns
Options = reversing_camera
available(Options, hatchback)
DO NOT WRITE IN THIS MARGIN
(c) F may be available for B if F is a feature and B is a body style and F is not unavailable for that
body style.
may_choose_option(F, B)
IF .............................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
..........................................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [3]
DO NOT WRITE IN THIS MARGIN
ĬÛù¿Ġ³íËóçù½Ė»ė¶Ġ×
© UCLES 2024 ĬĚĜÞÀħºÐ×ñĀðĝÇÔÞĂ
ĥąĕĕµĕŵµõĥĕµĥąÕĕÕ
9618/33/M/J/24 [Turn over
* 0019655539810 *
10 (a) State a condition that must be true for an array to be searchable for a binary search.
...................................................................................................................................................
............................................................................................................................................. [1]
(b) Complete the given pseudocode to find an item in a 1D array Names of type STRING using a
binary search.
...................................................................................................................................................
IF ........................................................................................................... THEN
Found ← TRUE
ELSE
IF TopOfList >= EndOfList THEN
...........................................................................................................
ELSE
...........................................................................................................
ELSE
EndOfList ←
CurrentItem – 1
ENDIF
ENDIF
ENDIF
ENDWHILE
IF Found = TRUE THEN
OUTPUT "Item found at position ", CurrentItem, " in array"
ELSE
OUTPUT "Item not in array"
DO NOT WRITE IN THIS MARGIN
ENDIF
[5]
ĬÙù¿Ġ³íËóçù½Ėºĕ¸Ğ×
© UCLES 2024 ĬĚĚÝ½ģ®ºàĀúēąė÷ĬæĂ
ĥÕąĕõõąÕąµµÕµåĥĕµÕ
9618/33/M/J/24
* 0019655539811 *
DO NOT WRITE IN THIS MARGIN
11
, ,
(c) Describe the performance of a binary search in relation to the number of data items in the
array being searched. Refer to Big O notation in your answer.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
DO NOT WRITE IN THIS MARGIN
11 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are
two types of processor.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [2]
(b) Outline the process of interrupt handling as it could be applied to RISC or CISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [3]
(c) Explain how pipelining affects interrupt handling for RISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
............................................................................................................................................. [3]
ĬÛù¿Ġ³íËóçù½Ėºė¸Ğ×
© UCLES 2024 ĬĚęÞÅĥ²ÊÙúćÖÑğãĬÖĂ
ĥÕõÕµĕĥµĕÅĥÕµÅąÕåÕ
9618/33/M/J/24
* 0019655539812 *
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/33/M/J/24
Cambridge International AS & A Level
* 6 2 5 8 7 8 7 9 8 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 (SLM) 220617
© UCLES 2021 [Turn over
2
(i) Write the normalised floating-point representation of the following unsigned binary
number using this system.
1011100.011001
Working .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
Mantissa Exponent
[2]
(ii) State the consequence of storing the binary number in part (a)(i) as a floating-point
number in this system. Justify your answer.
Consequence ....................................................................................................................
...........................................................................................................................................
Justification .......................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
[2]
(b) Explain the reason why binary numbers are stored in normalised form.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
© UCLES 2021 9618/31/O/N/21
3
2 Draw one line from each programming paradigm to its most appropriate description.
Declarative
Programs based on events such as user
actions or sensor outputs
Imperative
Programs using the concepts of class,
inheritance, encapsulation and
polymorphism
Low-level
[4]
(a) Write pseudocode to create an enumerated type called Parts to include these parts sold in
a computer shop:
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Write pseudocode to create a pointer type called SelectParts that will reference the
memory location in which the current part name is stored.
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
4 The following syntax diagrams for a particular programming language show the syntax of:
• a digit
• a capital letter
• a character.
1 E
2 I
3 O
4 U
5 character
$
6
%
7
&
8
*
9
#
(a) Write the Backus-Naur Form (BNF) notation of the syntax diagram for character.
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) A password must begin with a character and be followed by one or more digits or capital
letters.
..................................................................................................................................... [1]
password
character digit
capital letter
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
(b) State the most suitable method of file access when a record is referenced by a unique
address on a disk-type storage medium.
............................................................................................................................................. [1]
(c) State the most suitable method of file access when a bank stores its data records in ascending
order of account number.
............................................................................................................................................. [1]
6 (a) Explain how packet switching is used to transfer messages across the internet.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [5]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
7 (a) Write the Boolean expression that corresponds to the given truth table as a sum-of-products.
INPUT OUTPUT
A B C D Z
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Z = ............................................................................................................................................
............................................................................................................................................. [3]
(b) (i) Complete the Karnaugh map (K-map) for the given truth table.
AB
CD 00 01 11 10
00
01
11
10
[2]
(ii) Draw loop(s) around appropriate group(s) of 1s in the K-map to produce an optimal
sum-of-products. [2]
(iii) Write the Boolean expression from your answer to part b(ii) as a simplified
sum-of-products.
Z = .....................................................................................................................................
..................................................................................................................................... [2]
(iv) Write the simplified Boolean expression for your answer to part b(iii).
Z = .....................................................................................................................................
..................................................................................................................................... [1]
8 (a) Describe the purpose of the Secure Sockets Layer (SSL) and Transport Layer Security (TLS)
protocols.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain how SSL/TLS protocols are used when a client-server communication is initiated.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Output
Layer
Input
Layer
Hidden Hidden
Layer 1 Hidden Layer 3
Layer 2
(i) State the reason for having multiple hidden layers in an artificial neural network.
...........................................................................................................................................
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
(b) Find the shortest path between the Home and School nodes using the A* algorithm.
Show your working in the table provided.
14
h = 10 Home 9
g=1 4
A 5 C
3
7
B 6
2
6
D 6
3
7
F
1
2
3
E
3 5
School
Home 0 14 14
A 1 10 11
Final path
[5]
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
3 ................................................................................................................................................
...................................................................................................................................................
[3]
(b) Explain the reasons why a stack is a suitable Abstract Data Type (ADT) to implement
recursion.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
1 ................................................................................................................................................
2 ................................................................................................................................................
[2]
The function uses the variable TopOfStack to represent the pointer to the most recent
position used on the stack, and the variable Max to represent the maximum size of the stack.
Assume TopOfStack and Max are global variables.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
ENDFUNCTION
[5]
BLANK PAGE
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 the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
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 (RW/SW) 206388/2
© UCLES 2021 [Turn over
2
(i) Write the normalised floating-point representation of the following unsigned binary
number using this system.
1011100.011001
Working .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
Mantissa Exponent
[2]
(ii) State the consequence of storing the binary number in part (a)(i) as a floating-point
number in this system. Justify your answer.
Consequence ....................................................................................................................
...........................................................................................................................................
Justification .......................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
[2]
(b) Explain the reason why binary numbers are stored in normalised form.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
© UCLES 2021 9618/32/O/N/21
3
2 Draw one line from each programming paradigm to its most appropriate description.
Declarative
Programs based on events such as user
actions or sensor outputs
Imperative
Programs using the concepts of class,
inheritance, encapsulation and
polymorphism
Low-level
[4]
(a) Write pseudocode to create an enumerated type called Parts to include these parts sold in
a computer shop:
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Write pseudocode to create a pointer type called SelectParts that will reference the
memory location in which the current part name is stored.
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
4 The following syntax diagrams for a particular programming language show the syntax of:
• a digit
• a capital letter
• a character.
1 E
2 I
3 O
4 U
5 character
$
6
%
7
&
8
*
9
#
(a) Write the Backus-Naur Form (BNF) notation of the syntax diagram for character.
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) A password must begin with a character and be followed by one or more digits or capital
letters.
..................................................................................................................................... [1]
password
character digit
capital letter
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
(b) State the most suitable method of file access when a record is referenced by a unique
address on a disk-type storage medium.
............................................................................................................................................. [1]
(c) State the most suitable method of file access when a bank stores its data records in ascending
order of account number.
............................................................................................................................................. [1]
6 (a) Explain how packet switching is used to transfer messages across the internet.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [5]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
7 (a) Write the Boolean expression that corresponds to the given truth table as a sum-of-products.
INPUT OUTPUT
A B C D Z
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Z = ............................................................................................................................................
............................................................................................................................................. [3]
(b) (i) Complete the Karnaugh map (K-map) for the given truth table.
AB
CD 00 01 11 10
00
01
11
10
[2]
(ii) Draw loop(s) around appropriate group(s) of 1s in the K-map to produce an optimal
sum-of-products. [2]
(iii) Write the Boolean expression from your answer to part b(ii) as a simplified
sum-of-products.
Z = .....................................................................................................................................
..................................................................................................................................... [2]
(iv) Write the simplified Boolean expression for your answer to part b(iii).
Z = .....................................................................................................................................
..................................................................................................................................... [1]
8 (a) Describe the purpose of the Secure Sockets Layer (SSL) and Transport Layer Security (TLS)
protocols.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain how SSL/TLS protocols are used when a client-server communication is initiated.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Output
Layer
Input
Layer
Hidden Hidden
Layer 1 Hidden Layer 3
Layer 2
(i) State the reason for having multiple hidden layers in an artificial neural network.
...........................................................................................................................................
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
(b) Find the shortest path between the Home and School nodes using the A* algorithm.
Show your working in the table provided.
14
h = 10 Home 9
g=1 4
A 5 C
3
7
B 6
2
6
D 6
3
7
F
1
2
3
E
3 5
School
Home 0 14 14
A 1 10 11
Final path
[5]
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
3 ................................................................................................................................................
...................................................................................................................................................
[3]
(b) Explain the reasons why a stack is a suitable Abstract Data Type (ADT) to implement
recursion.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
1 ................................................................................................................................................
2 ................................................................................................................................................
[2]
The function uses the variable TopOfStack to represent the pointer to the most recent
position used on the stack, and the variable Max to represent the maximum size of the stack.
Assume TopOfStack and Max are global variables.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
ENDFUNCTION
[5]
BLANK PAGE
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 the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.
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 (LK/CGW) 302515/4
© UCLES 2022 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
Mantissa Exponent
0 0 0 1 1 1 1 0 0 0 0 1 1 0 0 0
...........................................................................................................................................
..................................................................................................................................... [1]
Mantissa Exponent
[2]
2 Outline the functions of the Transport and Internet layers of the TCP/IP protocol suite.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[5]
...................................................................................................................................................
............................................................................................................................................. [1]
...................................................................................................................................................
............................................................................................................................................. [1]
(c) The months of the year are: January, February, March, April, May, June, July, August,
September, October, November and December.
Write the pseudocode statement to define the data type Quarter1, to hold the names of the
first three months of a year.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(d) The composite data type Pet is used to store data about the various pets of a group of
students. It uses these fields:
(i) Write the pseudocode statement to set up a variable for one record of the composite
data type Pet.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Write pseudocode to store the details of the following pet, in the variable you set up in
part (d)(i).
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
4 Draw one line to connect each stage of compilation to its most appropriate description.
Lexical analysis
converting an intermediate representation of
source code into an executable form
Syntax analysis
converting a sequence of characters into a
sequence of tokens
Code generation
directly executing instructions written in a
scripting language
Optimisation
using parsing algorithms to interpret the
meaning of a sequence of tokens
[4]
a * b + b - d + 15
...................................................................................................................................................
............................................................................................................................................. [1]
a b - c d + * a /
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Evaluate your infix expression from part (b)(i) when a = 5, b = 10, c = 27 and d = 12.
...........................................................................................................................................
..................................................................................................................................... [1]
6 A message is encrypted using a private key and sent to an individual using asymmetric encryption.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Explain how a digital signature is used to verify a message when it is received.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
7 (a) Complete the Karnaugh map (K-map) for the Boolean expression.
Z = Ā. B. C̄. D̄ + Ā. B. C̄. D + A. B. C̄. D̄ + A. B. C̄. D + A. B̄. C̄. D̄ + A. B̄. C̄. D
AB
CD 00 01 11 10
00
01
11
10
[2]
(b) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(c) Write the Boolean expression from your answer to part (b) as a simplified sum-of-products.
Use Boolean algebra to give your answer in its simplest form.
Simplified sum-of-products
Z = ............................................................................................................................................
Simplest form
Z = ............................................................................................................................................
[3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) State one difference between paging and segmentation in the way memory is divided.
...................................................................................................................................................
............................................................................................................................................. [1]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
10 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are
two types of processor.
(a) Tick (3) one box in each row to show if the statement applies to RISC or CISC processors.
(b) Describe the process of pipelining during the fetch-execute cycle in RISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Instance ....................................................................................................................................
...................................................................................................................................................
Inheritance ................................................................................................................................
...................................................................................................................................................
Polymorphism ...........................................................................................................................
...................................................................................................................................................
[3]
Complete the pseudocode for the class Car to enable objects to be created. The class needs
to include:
• string attributes to store the make, model, body type and fuel type
• an integer attribute to store the number of cars of that type built.
The attributes must be available only through the methods of the class.
CLASS .....................................
PRIVATE ................................................................
................................................................................
................................................................................
................................................................................
.....................................................)
Make ← ......................................
Model ← ......................................
BodyType ← CarBodyType
Fuel ← ""
NumberBuilt ← 0
ENDPROCEDURE
GetFuel()
GetNumberBuilt()
.....................................
[5]
© UCLES 2022 9618/31/O/N/22
11
Lower ←0
......................................................................................................
Mid ← 0
Exit ← FALSE
OUTPUT "Enter the name to be found "
INPUT Target
REPEAT
....................................................................................................... THEN
Lower ←
.....................................................................................................
ENDIF
IF Names[Mid] > Target THEN
.....................................................................................................
ENDIF
...................................................................................................... THEN
OUTPUT Target, " was found at location ", Mid
Exit ← TRUE
ENDIF
......................................................................................................
[6]
The Big O notation for time complexity in a binary search is O(log n).
(i) State the Big O notation for time complexity of a linear search.
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
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.
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 (RW/CGW) 302516/4
© UCLES 2022 [Turn over
2
1 Normalised floating-point numbers are stored in a computer system using two’s complement for
both the mantissa and the exponent with:
(a) Write the largest positive two’s complement binary number that can be stored in this system.
Mantissa Exponent
[1]
(b) Calculate the denary value of the given binary floating-point number.
Show your working.
Mantissa Exponent
1 0 1 1 0 0 1 0 0 1 1 0 1 0 0 1
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
2 Lexical analysis and syntax analysis are stages in the compilation of a program.
(a) Identify two other stages that take place during the compilation of a program.
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Transport
Link
[2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
© UCLES 2022 9618/32/O/N/22 [Turn over
4
4 A program to manage regular flight details at an airport requires some user-defined data types.
(a) Write pseudocode statements to declare the enumerated data type Aircraft to hold data
about the types of aircraft used for a flight.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Write pseudocode statements to declare the composite data type Flight to hold data about
flights to a specific destination. These include:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
(c) (i) Write the pseudocode statement to set up a variable for one record of the composite
data type Flight.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Write pseudocode to store the details of the following flight in the variable you set up in
part (c)(i).
Field Data
flight number XA782
destination Cambridge
date of departure 12/12/2022
type of aircraft used C350
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
Description .......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Benefit 1 ...........................................................................................................................................
..........................................................................................................................................................
Benefit 2 ...........................................................................................................................................
..........................................................................................................................................................
Drawback 1 ......................................................................................................................................
..........................................................................................................................................................
Drawback 2 ......................................................................................................................................
..........................................................................................................................................................
[6]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain the process by which an organisation may acquire its digital certificate.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
8 (a) Draw a logic circuit for an SR flip-flop and label the inputs.
.................
Q̄
.................
[4]
...................................................................................................................................................
............................................................................................................................................. [1]
(c) Simplify the following expression using Boolean algebra, including De Morgan’s laws.
Show your working.
(A.B).(A.C).(B.D)
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Describe these scheduling routines and identify a benefit for each one.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[6]
Encapsulation ...........................................................................................................................
...................................................................................................................................................
Getter ........................................................................................................................................
...................................................................................................................................................
Setter ........................................................................................................................................
...................................................................................................................................................
[3]
(b) A school has a program written using OOP to maintain its staff and student records.
The object SubstituteTeacher allows the details of the school’s substitute teachers to be
stored. This includes their full name, telephone number and whether or not they are in school
today. For example:
Complete the diagram for the object SubstituteTeacher, including appropriate properties
and their getters and setters.
SubstituteTeacher
SubName : STRING
....................................................................................................
InSchool : BOOLEAN
....................................................................................................
SetTelephone(Tel : STRING)
....................................................................................................
GetSubName()
....................................................................................................
....................................................................................................
[3]
11 A simplified linked list is used to store the names of flowers in alphabetical order. It is implemented
using two 1D arrays:
HeadPointer indicates the index of the first flower name in the linked list.
HeadPointer 6
When the end of the linked list is reached, the next pointer has the value of 0.
(a) Several flower names have been deleted from the linked list. These are crossed out in the
following table.
Complete the table to show the new values of HeadPointer and NextPointer to keep the
remaining flower names in alphabetical order.
HeadPointer
(b) Complete the pseudocode algorithm so that it achieves the following when applied to the
arrays:
Pointer HeadPointer
Found 0
OUTPUT "Enter a flower name "
………………………………………………………………….
………………………………………………………………….
IF Flower[Pointer] = FlowerName THEN
Found Pointer
Pointer 0
ELSE
………………………………………………………………….
ENDIF
ENDWHILE
………………………………………………………………….
OUTPUT Flower[Found], " is found"
ELSE
………………………………………………………………….
ENDIF
[5]
(c) Explain how you could improve the simplified linked list structure.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
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.
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 (DE) 320392
© UCLES 2022 [Turn over
2
1 Real numbers are stored in a computer system using floating-point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
Mantissa Exponent
0 0 0 1 1 1 1 0 0 0 0 1 1 0 0 0
...........................................................................................................................................
..................................................................................................................................... [1]
Mantissa Exponent
[2]
2 Outline the functions of the Transport and Internet layers of the TCP/IP protocol suite.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[5]
...................................................................................................................................................
............................................................................................................................................. [1]
...................................................................................................................................................
............................................................................................................................................. [1]
(c) The months of the year are: January, February, March, April, May, June, July, August,
September, October, November and December.
Write the pseudocode statement to define the data type Quarter1, to hold the names of the
first three months of a year.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(d) The composite data type Pet is used to store data about the various pets of a group of
students. It uses these fields:
(i) Write the pseudocode statement to set up a variable for one record of the composite
data type Pet.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Write pseudocode to store the details of the following pet, in the variable you set up in
part (d)(i).
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
4 Draw one line to connect each stage of compilation to its most appropriate description.
Lexical analysis
converting an intermediate representation of
source code into an executable form
Syntax analysis
converting a sequence of characters into a
sequence of tokens
Code generation
directly executing instructions written in a
scripting language
Optimisation
using parsing algorithms to interpret the
meaning of a sequence of tokens
[4]
a * b + b - d + 15
...................................................................................................................................................
............................................................................................................................................. [1]
a b - c d + * a /
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Evaluate your infix expression from part (b)(i) when a = 5, b = 10, c = 27 and d = 12.
...........................................................................................................................................
..................................................................................................................................... [1]
6 A message is encrypted using a private key and sent to an individual using asymmetric encryption.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Explain how a digital signature is used to verify a message when it is received.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
7 (a) Complete the Karnaugh map (K-map) for the Boolean expression.
Z = Ā. B. C̄. D̄ + Ā. B. C̄. D + A. B. C̄. D̄ + A. B. C̄. D + A. B̄. C̄. D̄ + A. B̄. C̄. D
AB
CD 00 01 11 10
00
01
11
10
[2]
(b) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products. [2]
(c) Write the Boolean expression from your answer to part (b) as a simplified sum-of-products.
Use Boolean algebra to give your answer in its simplest form.
Simplified sum-of-products
Z = ............................................................................................................................................
Simplest form
Z = ............................................................................................................................................
[3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) State one difference between paging and segmentation in the way memory is divided.
...................................................................................................................................................
............................................................................................................................................. [1]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
10 Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are
two types of processor.
(a) Tick (3) one box in each row to show if the statement applies to RISC or CISC processors.
(b) Describe the process of pipelining during the fetch-execute cycle in RISC processors.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
Instance ....................................................................................................................................
...................................................................................................................................................
Inheritance ................................................................................................................................
...................................................................................................................................................
Polymorphism ...........................................................................................................................
...................................................................................................................................................
[3]
Complete the pseudocode for the class Car to enable objects to be created. The class needs
to include:
• string attributes to store the make, model, body type and fuel type
• an integer attribute to store the number of cars of that type built.
The attributes must be available only through the methods of the class.
CLASS .....................................
PRIVATE ................................................................
................................................................................
................................................................................
................................................................................
.....................................................)
Make ← ......................................
Model ← ......................................
BodyType ← CarBodyType
Fuel ← ""
NumberBuilt ← 0
ENDPROCEDURE
GetFuel()
GetNumberBuilt()
.....................................
[5]
© UCLES 2022 9618/33/O/N/22
11
Lower ←0
......................................................................................................
Mid ← 0
Exit ← FALSE
OUTPUT "Enter the name to be found "
INPUT Target
REPEAT
....................................................................................................... THEN
Lower ←
.....................................................................................................
ENDIF
IF Names[Mid] > Target THEN
.....................................................................................................
ENDIF
...................................................................................................... THEN
OUTPUT Target, " was found at location ", Mid
Exit ← TRUE
ENDIF
......................................................................................................
[6]
The Big O notation for time complexity in a binary search is O(log n).
(i) State the Big O notation for time complexity of a linear search.
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
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.
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 (PQ/CB) 318339/3
© UCLES 2023 [Turn over
2
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Explain the problem that will occur in storing the normalised floating-point representation of
+65.20 in this system.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
2 (a) Draw one line to connect each protocol to its most appropriate use.
Protocol Use
SMTP
IMAP
when sending email messages towards
the intended destination
[4]
(b) Outline the purpose of the Link layer in the TCP / IP protocol suite.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Enumerated ......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Pointer ..............................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Outline the process of sequential access for serial and sequential files.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
SISD .................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
MIMD ................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
BLANK PAGE
A
B Z
C
(a) Complete the truth table for the given logic circuit.
Working space
A B C D Z
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
[3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
State one benefit to the student of a user interface and give an example.
Benefit ......................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Example ....................................................................................................................................
...................................................................................................................................................
[2]
(b) Two of the process states are the running state and the ready state.
............................................................................................................................................. [1]
(c) Outline conditions under which a process could change from the running state to the ready
state.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
8 (a) A pseudocode algorithm finds a customer account record in a random file and outputs it. The
records are stored using the user-defined data type TAccount.
TYPE TAccount
DECLARE AccountNumber : INTEGER
DECLARE LastName : STRING
DECLARE FirstName : STRING
DECLARE Address : STRING
DECLARE ContactNumber : STRING
ENDTYPE
The function Hash() takes the customer account number as a parameter, calculates and
returns the hash value.
.................................................................................................. "AccountRecords.dat"
...................................................................................................................................................
............................................................................................................................................. [1]
...................................................................................................................................................
............................................................................................................................................. [2]
9 (a) (i) Write the infix expression for this Reverse Polish Notation (RPN) expression:
5 2 – 5 4 + * 9 /
...........................................................................................................................................
..................................................................................................................................... [2]
(ii) Show how the contents of the following stack will change as the RPN expression in
part (a)(i) is evaluated.
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
A constant, with identifier Capacity, limits the size of the stack to 25 items.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Complete the pseudocode function Pop() to pop an item from Stack.
FUNCTION Pop()...............................................................................
DECLARE Item : REAL
Item 0
Item ...............................................................................
TopPointer ...............................................................................
ELSE
OUTPUT "The stack is empty – error"
ENDIF
...............................................................................
ENDFUNCTION
[5]
(c) Compare and contrast the queue and stack Abstract Data Types (ADT).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
11 A declarative programming language is used to represent subjects that students can choose to
study.
01 subject(mathematics).
02 subject(physics).
03 subject(chemistry).
04 subject(computer_science).
05 subject(geography).
06 subject(history).
07 subject(english).
08 subject(biology).
09 student(tomaz).
10 student(josephine).
11 student(elspeth).
12 student(nico).
13 student(teresa).
14 student(pietre).
15 choice1(tomaz, mathematics).
16 choice1(teresa, chemistry).
17 choice1(pietre, mathematics).
18 choice1(nico, mathematics).
19 choice1(elspeth, chemistry).
20 choice2(tomaz, computer_science).
21 choice2(nico, geography).
Clause Meaning
01 Mathematics is a subject.
09 Tomaz is a student.
15 Tomaz has chosen mathematics as his first choice.
20 Tomaz has chosen computer science as his second choice.
(a) Anthony is a student who would like to study history and geography.
22 .............................................................................................................................................
23 .............................................................................................................................................
24 .............................................................................................................................................
[3]
choice1(X, chemistry)
returns
X = teresa, elspeth
choice1(X, mathematics)
X = ..................................................................................................................................... [1]
N may choose S, if N is a student and S is a subject and N has not chosen S as the first
choice.
may_choose_subject(N, S)
IF .............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
12 Artificial neural networks have played a significant role in the development of machine learning.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
BLANK PAGE
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.
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 (EF/CT) 318340/2
© UCLES 2023 [Turn over
2
1 (a) Real numbers are stored in a computer using floating point representation with:
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(b) Explain why a binary representation is sometimes only an approximation to the real number it
represents.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
Composite ........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Non‑composite .................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Explain how a collision can be dealt with when writing records to a random file.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
4 Complete the following paragraph about a protocol suite, using words from the given list.
............................................................................. model.
[3]
5 (a) Outline the reasons why an operating system may need to use virtual memory.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
a b * 2 / c d / *
Show the changing contents of the following stack as the RPN expression is evaluated.
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
B X
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[1]
X = ...................................................................................................................................... [1]
T = X.Y.Z + X.Y.Z + X
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
8 Calculate the shortest distance between the Start and each of the destinations in the diagram
using Dijkstra’s algorithm.
Show your working and write your answers in the table provided.
4 8
A B
C
2
3
8 9
D
2
Start 10
F
Working ............................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Answers:
A B C D E F
[5]
9 (a) A stack Abstract Data Type (ADT) is to be implemented using pseudocode, with procedures
to initialise it and to push new items onto the stack.
(i) Study the pseudocode in part (a)(ii) and complete the table of identifiers by writing the
missing data types and descriptions.
BasePointer
TopPointer
Stack REAL
[2]
CONSTANT MaxSize = 40
DECLARE BasePointer : INTEGER
DECLARE TopPointer : INTEGER
DECLARE Stack : ARRAY[1:40] OF REAL
// initialisation of stack
PROCEDURE Initialise()
................................................................................ 1
................................................................................ 0
ENDPROCEDURE
..........................................................................................................
Stack[TopPointer] .............................................................
ENDIF
ENDPROCEDURE
[5]
(b) Justify the use of a linked list instead of an array to implement a stack.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(c) Explain how a compiler makes use of a stack when translating recursive programming code.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
SIMD ................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
MISD ................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
11 A declarative programming language is used to represent some facts about people and their
hobbies.
01 hobby(music).
02 hobby(caving).
03 hobby(climbing).
04 hobby(camping).
05 hobby(baking).
06 hobby(travelling).
07 person(toby).
08 person(natasha).
09 person(fatima).
10 person(joseph).
11 person(elijah).
12 person(nina).
13 enjoys(natasha, travelling).
14 enjoys(toby, climbing).
15 enjoys(nina, climbing).
16 enjoys(elijah, camping).
17 enjoys(fatima, baking).
18 enjoys(joseph, camping).
19 dislikes(toby, caving).
Clause Meaning
01 Music is a hobby
07 Toby is a person
13 Natasha enjoys travelling
19 Toby dislikes caving
(a) Carlos is a person who enjoys the hobby of cycling but does not like music.
20 ............................................................................................................................................
21 ............................................................................................................................................
22 ............................................................................................................................................
23 ............................................................................................................................................
[4]
enjoys(P, camping)
returns
P = elijah, joseph
enjoys(P, climbing)
P = .................................................................................................................................... [1]
(c) N is a person who might enjoy H if H is a hobby and N does not dislike H.
might_enjoy(N, H)
IF ............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
The records are stored using the user‑defined data type TAccount.
TYPE TAccount
DECLARE AccountNumber : INTEGER
DECLARE Name : STRING
DECLARE Address : STRING
DECLARE Telephone : STRING
ENDTYPE
OPENFILE ...............................................................................................................
Location 1
............................................................................................................... FALSE
OUTPUT "Enter the customer’s name"
...............................................................................................................
OUTPUT ".........................................................................................................."
ENDIF
[7]
© UCLES 2023 9618/32/O/N/23
13
BLANK PAGE
BLANK PAGE
BLANK PAGE
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.
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 (AP) 333121
© UCLES 2023 [Turn over
2
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Explain the problem that will occur in storing the normalised floating-point representation of
+65.20 in this system.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
2 (a) Draw one line to connect each protocol to its most appropriate use.
Protocol Use
SMTP
IMAP
when sending email messages towards
the intended destination
[4]
(b) Outline the purpose of the Link layer in the TCP / IP protocol suite.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
Enumerated ......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Pointer ..............................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Outline the process of sequential access for serial and sequential files.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
SISD .................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
MIMD ................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
[4]
BLANK PAGE
A
B Z
C
(a) Complete the truth table for the given logic circuit.
Working space
A B C D Z
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
[3]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
State one benefit to the student of a user interface and give an example.
Benefit ......................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Example ....................................................................................................................................
...................................................................................................................................................
[2]
(b) Two of the process states are the running state and the ready state.
............................................................................................................................................. [1]
(c) Outline conditions under which a process could change from the running state to the ready
state.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
8 (a) A pseudocode algorithm finds a customer account record in a random file and outputs it. The
records are stored using the user-defined data type TAccount.
TYPE TAccount
DECLARE AccountNumber : INTEGER
DECLARE LastName : STRING
DECLARE FirstName : STRING
DECLARE Address : STRING
DECLARE ContactNumber : STRING
ENDTYPE
The function Hash() takes the customer account number as a parameter, calculates and
returns the hash value.
.................................................................................................. "AccountRecords.dat"
...................................................................................................................................................
............................................................................................................................................. [1]
...................................................................................................................................................
............................................................................................................................................. [2]
9 (a) (i) Write the infix expression for this Reverse Polish Notation (RPN) expression:
5 2 – 5 4 + * 9 /
...........................................................................................................................................
..................................................................................................................................... [2]
(ii) Show how the contents of the following stack will change as the RPN expression in
part (a)(i) is evaluated.
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
A constant, with identifier Capacity, limits the size of the stack to 25 items.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) Complete the pseudocode function Pop() to pop an item from Stack.
FUNCTION Pop()...............................................................................
DECLARE Item : REAL
Item 0
Item ...............................................................................
TopPointer ...............................................................................
ELSE
OUTPUT "The stack is empty – error"
ENDIF
...............................................................................
ENDFUNCTION
[5]
(c) Compare and contrast the queue and stack Abstract Data Types (ADT).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
11 A declarative programming language is used to represent subjects that students can choose to
study.
01 subject(mathematics).
02 subject(physics).
03 subject(chemistry).
04 subject(computer_science).
05 subject(geography).
06 subject(history).
07 subject(english).
08 subject(biology).
09 student(tomaz).
10 student(josephine).
11 student(elspeth).
12 student(nico).
13 student(teresa).
14 student(pietre).
15 choice1(tomaz, mathematics).
16 choice1(teresa, chemistry).
17 choice1(pietre, mathematics).
18 choice1(nico, mathematics).
19 choice1(elspeth, chemistry).
20 choice2(tomaz, computer_science).
21 choice2(nico, geography).
Clause Meaning
01 Mathematics is a subject.
09 Tomaz is a student.
15 Tomaz has chosen mathematics as his first choice.
20 Tomaz has chosen computer science as his second choice.
(a) Anthony is a student who would like to study history and geography.
22 .............................................................................................................................................
23 .............................................................................................................................................
24 .............................................................................................................................................
[3]
choice1(X, chemistry)
returns
X = teresa, elspeth
choice1(X, mathematics)
X = ..................................................................................................................................... [1]
N may choose S, if N is a student and S is a subject and N has not chosen S as the first
choice.
may_choose_subject(N, S)
IF .............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
12 Artificial neural networks have played a significant role in the development of machine learning.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
BLANK PAGE
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.
, ,
¬O. 4mHuOªE_z6W
¬a/|P¤x^pw~w-2s
¥5EU55euUU¥E uEuuU
* 7 6 0 6 8 7 7 1 6 1 *
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 (JP/SG) 336461/5
© UCLES 2024 [Turn over
* 0000800000002 *
(a) Calculate the normalised binary floating-point representation of +201.125 in this system.
Mantissa Exponent
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(b) Calculate the denary value of the given normalised binary floating-point number.
Mantissa Exponent
1 0 1 0 1 1 0 0 1 1 0 0 0 1 0 1
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
ĬÍĊ®Ġ´íÈõÏĪÅĊÞü¸þ×
© UCLES 2024 ĬáûÍĨôĝÕāāġ¿ÇĂËďĂ
ĥĥÕÕõÕĥĕĥĕµąąµåµÕÕ
9618/31/O/N/24
* 0000800000003 *
DO NOT WRITE IN THIS MARGIN
3
, ,
1 .......................................................................................................................................................
..........................................................................................................................................................
2 .......................................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
3 .......................................................................................................................................................
..........................................................................................................................................................
4 .......................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) State one benefit and one drawback of circuit switching as a method of data transmission.
DO NOT WRITE IN THIS MARGIN
Benefit ......................................................................................................................................
...................................................................................................................................................
Drawback ..................................................................................................................................
...................................................................................................................................................
[2]
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊÞú¸þ×
© UCLES 2024 Ĭá®üÕĢðčä÷ðèě¯ÖËğĂ
ĥĥåĕµµąõõĥĥąąÕÅõÅÕ
9618/31/O/N/24 [Turn over
* 0000800000004 *
4 The TCP/IP protocol may be viewed as a stack that contains four layers: Application, Transport,
Internet, Link.
Describe how the layers of the TCP/IP protocol stack interact with each other.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
5 (a) Explain what is meant by a hashing algorithm in the context of file access.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) The use of a hashing algorithm can result in the same storage location being identified for
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
DO NOT WRITE IN THIS MARGIN
ĬÍĊ®Ġ´íÈõÏĪÅĊàü¸Ā×
© UCLES 2024 Ĭá®ùÕĬþĜ×ù÷ß¹ēøÛėĂ
ĥÕõĕõµąÕĕÅĕąÅÕĥõÕÕ
9618/31/O/N/24
* 0000800000005 *
DO NOT WRITE IN THIS MARGIN
5
, ,
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [3]
(b) Write pseudocode statements to declare the set data type, SymbolSet, to hold the following
set of mathematical operators, using the variable Operators.
+ – * / ^
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊàú¸Ā×
© UCLES 2024 ĬáúÍĞĂĬâÿĊĪĝīäÛħĂ
ĥÕąÕµÕĥµąµÅąÅµąµÅÕ
9618/31/O/N/24 [Turn over
* 0000800000006 *
INPUT OUTPUT
A B C D T
0 0 0 0 0
0 0 0 1 1
0 0 1 0 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 0 1 1
1 1 1 0 0
1 1 1 1 1
(a) Write the Boolean logic expression that corresponds to the given truth table as the
sum-of-products.
ĬÑĊ®Ġ´íÈõÏĪÅĊÝúµþ×
© UCLES 2024 Ĭá®úÒĨĪĢêČûēýēÁóėĂ
ĥąåÕµõĥĕÅÕĥąąµåõĕÕ
9618/31/O/N/24
* 0000800000007 *
DO NOT WRITE IN THIS MARGIN
7
, ,
(b) Complete the Karnaugh map (K-map) for the given truth table.
AB
CD
00 01 11 10
00
01
DO NOT WRITE IN THIS MARGIN
11
10
[2]
(c) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal sum-of-products.
[2]
(d) (i) Write the Boolean logic expression from your answer to part (c) as the simplified
sum-of-products.
DO NOT WRITE IN THIS MARGIN
T = ......................................................................................................................................
..................................................................................................................................... [2]
(ii) Use Boolean algebra to write your answer to part (d)(i) in its simplest form.
T = ............................................................................................................................... [1]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊÝüµþ×
© UCLES 2024 ĬáùÚĢĦĒÏîĆÖÙīĕóħĂ
ĥąÕĕõĕąõÕåµąąÕŵąÕ
9618/31/O/N/24 [Turn over
* 0000800000008 *
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊßúµĀ×
© UCLES 2024 ĬáüÚĬĘėìôýÍûÇ·ģďĂ
ĥµąĕµĕąÕµąÅąÅÕĥµĕÕ
9618/31/O/N/24
* 0000800000009 *
DO NOT WRITE IN THIS MARGIN
9
, ,
(a) State one reason why the attributes would be declared as PRIVATE.
...................................................................................................................................................
............................................................................................................................................. [1]
• a method to create a Pet object and set attributes at the time of registration
• a method to assign a pet ID
• a method to assign the date of registration
• a method to return the pet name
• a method to return the owner’s telephone number.
Pet
PetID : STRING
PetType : STRING
OwnerTelephone : STRING
DO NOT WRITE IN THIS MARGIN
DateRegistered : DATE
.............................................................. : ..............................................................
.............................................................. : ..............................................................
.................................................................................................................................
.................................................................................................................................
.................................................................................................................................
DO NOT WRITE IN THIS MARGIN
.................................................................................................................................
.................................................................................................................................
[5]
ĬÓĊ®Ġ´íÈõÏĪÅĊßüµĀ×
© UCLES 2024 Ĭá®ûÒĞĜħÍĆôĜ߯ģģğĂ
ĥµõÕõõĥµåõĕąÅµąõąÕ
9618/31/O/N/24 [Turn over
* 0000800000010 *
letter operator
A +
E –
I *
U digit
0
Y
1
symbol
# 2
? 4
& 5
@ 6
label
letter digit digit
DO NOT WRITE IN THIS MARGIN
equation
label = label operator label
ĬÑĊ®Ġ´íÈõÏĪÅĊÞú·þ×
© UCLES 2024 Ĭá°üÓĪĐāæûĆ÷ėÅÓÛħĂ
ĥĥĥÕµĕåÕĕµÅÅÅõĥµåÕ
9618/31/O/N/24
* 0000800000011 *
DO NOT WRITE IN THIS MARGIN
11
, ,
(a) Complete the Backus-Naur Form (BNF) for the given syntax diagrams.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) A new syntax rule, password, is required. It must begin with a letter or a symbol, followed by
a digit and end with one or two symbols.
[3]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊÞü·þ×
© UCLES 2024 Ĭá¯ûÛĠĔñÓýû²ÃćÛėĂ
ĥĥĕĕõõŵąÅĕÅÅĕąõµÕ
9618/31/O/N/24 [Turn over
* 0000800000012 *
Red
Green Yellow
Indigo
(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.
RootPtr
Green
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊàú·Ā×
© UCLES 2024 Ĭá¯úÛĦĢøèăô¹ġđåËğĂ
ĥÕÅĕµõÅĕĥĥĥÅąĕåõåÕ
9618/31/O/N/24
* 0000800000013 *
DO NOT WRITE IN THIS MARGIN
13
, ,
(b) A user-defined record structure is used to store the nodes of the linked list in part (a).
0 0 Red
1 Green
2 Yellow
DO NOT WRITE IN THIS MARGIN
3 Blue
4 Orange
5 Indigo
FreePtr 6 Violet
7
[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 BinTree. It returns the index of the record if the element is found, or it returns a null
pointer if the element is not found.
NowPtr .........................................................................................................................
WHILE NowPtr <> -1
DO NOT WRITE IN THIS MARGIN
IF ..................................................................................................................... THEN
NowPtr BinTree[NowPtr].LeftPtr
ELSE
IF BinTree[NowPtr].Data < Item THEN
.........................................................................................................................
ELSE
RETURN NowPtr
ENDIF
DO NOT WRITE IN THIS MARGIN
ENDIF
ENDWHILE
RETURN NowPtr
ENDFUNCTION
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊàü·Ā×
© UCLES 2024 Ĭá°ùÓĤĞĈÑõýðµĩñËďĂ
ĥÕµÕõĕåõõĕµÅąõŵµÕ
9618/31/O/N/24
© UCLES 2024
,
* 0000800000014 *
ĥõµĕµõĥÕĕąµąÅµĥõĥÕ
Ĭá¯ûÒĞđðãóĊÓę´õûėĂ
ĬÍĊ®Ġ´íÈõÏĪÅĊßû¶Ă×
,
14
9618/31/O/N/24
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
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
© UCLES 2024
,
* 0000800000015 *
ĥõÅÕõĕąµąõĥąÅÕąµõÕ
Ĭá°üÚĬčĀÖą÷˽ÌáûħĂ
ĬÏĊ®Ġ´íÈõÏĪÅĊßù¶Ă×
,
15
9618/31/O/N/24
BLANK PAGE
* 0000800000016 *
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/31/O/N/24
* 0000800000001 *
, ,
¬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.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
(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]
2 (a) Describe serial file organisation as a method of storing data records in a file.
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [1]
ĬÍĊ®Ġ´íÈõÏĪÅĊÞû·þ×
© UCLES 2024 ĬëÖñÎğüíåċñĒû²ý´ĝĂ
ĥõÕĕõÕąõõĥĥÅąÕąõµÕ
9618/32/O/N/24
* 0000800000003 *
DO NOT WRITE IN THIS MARGIN
3
, ,
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [3]
• account number
• order number
• order price
• order date.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [4]
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊÞù·þ×
© UCLES 2024 ĬëÕòÖĩøýÔíĀ×ßÊÙ´čĂ
ĥõåÕµµĥĕĥĕµÅąµĥµåÕ
9618/32/O/N/24 [Turn over
* 0000800000004 *
(a) Calculate the denary value of the given normalised binary floating‑point number.
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[2]
Mantissa Exponent
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
DO NOT WRITE IN THIS MARGIN
ĬÍĊ®Ġ´íÈõÏĪÅĊàû·Ā×
© UCLES 2024 ĬëÕóÖģĆČçóćÐýĦûäĥĂ
ĥÅõÕõµĥµąµÅÅŵŵµÕ
9618/32/O/N/24
* 0000800000005 *
DO NOT WRITE IN THIS MARGIN
5
, ,
5 (a) Name and describe two protocols used by the Application Layer of the TCP/IP protocol suite.
Protocol 1 .................................................................................................................................
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Protocol 2 .................................................................................................................................
DO NOT WRITE IN THIS MARGIN
Description ................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) Explain the purpose and function of the Application Layer in the TCP/IP protocol suite.
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊàù·Ā×
© UCLES 2024 ĬëÖôÎĥĊüÒąúęÙĎßäĕĂ
ĥÅąĕµÕąÕĕÅĕÅÅÕåõåÕ
9618/32/O/N/24 [Turn over
* 0000800000006 *
INPUT OUTPUT
A B C D X
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
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 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
X = ............................................................................................................................................
............................................................................................................................................. [3]
DO NOT WRITE IN THIS MARGIN
ĬÑĊ®Ġ´íÈõÏĪÅĊÝù¶þ×
© UCLES 2024 ĬëÕôÑğĢòÚĂċĤ¹Ħ¾ČĥĂ
ĥĕåĕµõąõÕåµÅąÕąµõÕ
9618/32/O/N/24
* 0000800000007 *
DO NOT WRITE IN THIS MARGIN
7
, ,
(b) Complete the Karnaugh map (K‑map) for the given truth table.
AB
CD
00 01 11 10
00
01
DO NOT WRITE IN THIS MARGIN
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.
DO NOT WRITE IN THIS MARGIN
X = ............................................................................................................................................
............................................................................................................................................. [2]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊÝû¶þ×
© UCLES 2024 ĬëÖóÙĩĞĂßøöåĝĎĚČĕĂ
ĥĕÕÕõĕĥĕÅÕĥÅąµĥõĥÕ
9618/32/O/N/24 [Turn over
* 0000800000008 *
odd even
1 0
3 2
5 4
9 8
symbol letter
% A
£ B
@ D
$ E
even
DO NOT WRITE IN THIS MARGIN
ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×
© 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
Reason .....................................................................................................................................
...................................................................................................................................................
123
Reason .....................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
[2]
(b) Complete the Backus‑Naur Form (BNF) for the given syntax diagrams.
...................................................................................................................................................
...................................................................................................................................................
[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.
[3]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊßû¶Ā×
© UCLES 2024 ĬëÕñÑĥĔ÷ÝĀĄīěÊĠĜčĂ
ĥåõĕõõąÕµąÅÅÅÕåµĥÕ
9618/32/O/N/24 [Turn over
* 0000800000010 *
1 .......................................................................................................................................................
..........................................................................................................................................................
2 .......................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
4 .......................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) (i) State what is meant by the term multi‑tasking in an Operating System.
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
DO NOT WRITE IN THIS MARGIN
ĬÑĊ®Ġ´íÈõÏĪÅĊÞù¸þ×
© UCLES 2024 Ĭë×òÔġĘđÖñöĈã´ÐäĕĂ
ĥõĥĕµĕŵąÅĕąÅĕÅõÅÕ
9618/32/O/N/24
* 0000800000011 *
DO NOT WRITE IN THIS MARGIN
11
, ,
10 Objects and classes form the basic structure of Object‑Oriented Programming (OOP).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
............................................................................................................................................. [3]
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
3 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊÞû¸þ×
© UCLES 2024 ĬëØñÜħĜġãćċÁ÷ÌČäĥĂ
ĥõĕÕõõåÕĕµÅąÅõåµÕÕ
9618/32/O/N/24 [Turn over
* 0000800000012 *
25
4 36
1 16 64
(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.
25
[4]
DO NOT WRITE IN THIS MARGIN
ĬÑĊ®Ġ´íÈõÏĪÅĊàù¸Ā×
© 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
4 16
5 64
FreePtr 6 9
7 49
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.
.................................................................... RootPtr
DO NOT WRITE IN THIS MARGIN
IF .............................................................................................................. THEN
NowPtr .....................................................................................................
ELSE
RETURN NowPtr
DO NOT WRITE IN THIS MARGIN
ENDIF
ENDIF
ENDWHILE
RETURN NullPtr
ENDFUNCTION
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊàû¸Ā×
© UCLES 2024 Ĭë×óÔīĦĘáïíÿāĐî´ĝĂ
ĥŵĕõĕÅĕĥĥĥąąĕĥõÕÕ
9618/32/O/N/24
© UCLES 2024
,
* 0000800000014 *
ĥĥµÕµõąµąõĥÅÅÕŵąÕ
ĬëØñÑĥęĠÓùúäÝÅúĄĥĂ
ĬÍĊ®Ġ´íÈõÏĪÅĊßüµĂ×
,
14
9618/32/O/N/24
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
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
© UCLES 2024
,
* 0000800000015 *
ĥĥÅĕõĕĥÕĕąµÅŵåõĕÕ
Ĭë×òÙģĕĐæÿćĥùÞĄĕĂ
ĬÏĊ®Ġ´íÈõÏĪÅĊßúµĂ×
,
15
9618/32/O/N/24
BLANK PAGE
* 0000800000016 *
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
* 0000800000001 *
, ,
¬O. 4mHuOªE`{6W
¬[sR¢lnJ=
¥uEU5UE5eE U¥5eU
* 1 0 8 6 5 2 0 5 9 9 *
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 (EV) 347522
© UCLES 2024 [Turn over
* 0000800000002 *
(a) Calculate the normalised binary floating-point representation of +201.125 in this system.
Mantissa Exponent
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[3]
(b) Calculate the denary value of the given normalised binary floating-point number.
Mantissa Exponent
1 0 1 0 1 1 0 0 1 1 0 0 0 1 0 1
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
Answer ......................................................................................................................................
[3]
ĬÍĊ®Ġ´íÈõÏĪÅĊÝù¸þ×
© UCLES 2024 ĬāÙôÓĪĦïÓăöåõ̲äĈĂ
ĥåÕÕõµąõąÕõąąĕąõąÕ
9618/33/O/N/24
* 0000800000003 *
DO NOT WRITE IN THIS MARGIN
3
, ,
1 .......................................................................................................................................................
..........................................................................................................................................................
2 .......................................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
3 .......................................................................................................................................................
..........................................................................................................................................................
4 .......................................................................................................................................................
..........................................................................................................................................................
[4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) State one benefit and one drawback of circuit switching as a method of data transmission.
DO NOT WRITE IN THIS MARGIN
Benefit ......................................................................................................................................
...................................................................................................................................................
Drawback ..................................................................................................................................
...................................................................................................................................................
[2]
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊÝû¸þ×
© UCLES 2024 ĬāÚóÛĠĪÿæõċĤáĚĦäøĂ
ĥååĕµÕĥĕĕååąąõĥµĕÕ
9618/33/O/N/24 [Turn over
* 0000800000004 *
4 The TCP/IP protocol may be viewed as a stack that contains four layers: Application, Transport,
Internet, Link.
Describe how the layers of the TCP/IP protocol stack interact with each other.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................... [4]
5 (a) Explain what is meant by a hashing algorithm in the context of file access.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
(b) The use of a hashing algorithm can result in the same storage location being identified for
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
DO NOT WRITE IN THIS MARGIN
ĬÍĊ®Ġ´íÈõÏĪÅĊßù¸Ā×
© UCLES 2024 ĬāÚòÛĦĜĊÑûĄīă¶È´ĀĂ
ĥĕõĕõÕĥµõąÕąÅõŵąÕ
9618/33/O/N/24
* 0000800000005 *
DO NOT WRITE IN THIS MARGIN
5
, ,
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
............................................................................................................................................. [3]
(b) Write pseudocode statements to declare the set data type, SymbolSet, to hold the following
set of mathematical operators, using the variable Operators.
+ – * / ^
...................................................................................................................................................
...................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊßû¸Ā×
© UCLES 2024 ĬāÙñÓĤĘúèýíÞ×¾Ĕ´ðĂ
ĥĕąÕµµąÕĥõąąÅĕåõĕÕ
9618/33/O/N/24 [Turn over
* 0000800000006 *
INPUT OUTPUT
A B C D T
0 0 0 0 0
0 0 0 1 1
0 0 1 0 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 0 1 1
1 1 1 0 0
1 1 1 1 1
(a) Write the Boolean logic expression that corresponds to the given truth table as the
sum-of-products.
ĬÑĊ®Ġ´íÈõÏĪÅĊÞûµþ×
© UCLES 2024 ĬāÚñÐĪðôàĊĀ×·¶ñĜĀĂ
ĥÅåÕµĕąõåĕåąąĕąµÅÕ
9618/33/O/N/24
* 0000800000007 *
DO NOT WRITE IN THIS MARGIN
7
, ,
(b) Complete the Karnaugh map (K-map) for the given truth table.
AB
CD
00 01 11 10
00
01
DO NOT WRITE IN THIS MARGIN
11
10
[2]
(c) Draw loop(s) around appropriate group(s) in the K-map to produce an optimal sum-of-products.
[2]
(d) (i) Write the Boolean logic expression from your answer to part (c) as the simplified
sum-of-products.
DO NOT WRITE IN THIS MARGIN
T = ......................................................................................................................................
..................................................................................................................................... [2]
(ii) Use Boolean algebra to write your answer to part (d)(i) in its simplest form.
T = ............................................................................................................................... [1]
DO NOT WRITE IN THIS MARGIN
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊÞùµþ×
© UCLES 2024 ĬāÙòØĠôĄÙðñĒģ¾åĜðĂ
ĥÅÕĕõõĥĕµĥõąąõĥõÕÕ
9618/33/O/N/24 [Turn over
* 0000800000008 *
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊàûµĀ×
© UCLES 2024 ĬāÙóØĦĂąÞòúęÁĢćČĈĂ
ĥõąĕµõĥµÕÅąąÅõÅõÅÕ
9618/33/O/N/24
* 0000800000009 *
DO NOT WRITE IN THIS MARGIN
9
, ,
(a) State one reason why the attributes would be declared as PRIVATE.
...................................................................................................................................................
............................................................................................................................................. [1]
• a method to create a Pet object and set attributes at the time of registration
• a method to assign a pet ID
• a method to assign the date of registration
• a method to return the pet name
• a method to return the owner’s telephone number.
Pet
PetID : STRING
PetType : STRING
OwnerTelephone : STRING
DO NOT WRITE IN THIS MARGIN
DateRegistered : DATE
.............................................................. : ..............................................................
.............................................................. : ..............................................................
.................................................................................................................................
.................................................................................................................................
.................................................................................................................................
DO NOT WRITE IN THIS MARGIN
.................................................................................................................................
.................................................................................................................................
[5]
ĬÓĊ®Ġ´íÈõÏĪÅĊàùµĀ×
© UCLES 2024 ĬāÚôÐĤþõÛĈćÐĕĚÓČøĂ
ĥõõÕõĕąÕÅµÕąÅĕåµÕÕ
9618/33/O/N/24 [Turn over
* 0000800000010 *
letter operator
A +
E –
I *
U digit
0
Y
1
symbol
# 2
? 4
& 5
@ 6
label
letter digit digit
DO NOT WRITE IN THIS MARGIN
equation
label = label operator label
ĬÑĊ®Ġ´íÈõÏĪÅĊÝû·þ×
© UCLES 2024 ĬāÜóÍĨĊēäùñ³ÝĤģ´ðĂ
ĥåĥÕµõŵõõąÅÅÕÅõõÕ
9618/33/O/N/24
* 0000800000011 *
DO NOT WRITE IN THIS MARGIN
11
, ,
(a) Complete the Backus-Naur Form (BNF) for the given syntax diagrams.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(b) A new syntax rule, password, is required. It must begin with a letter or a symbol, followed by
a digit and end with one or two symbols.
[3]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊÝù·þ×
© UCLES 2024 ĬāÛôÕĢĆģÕÿĀöùĜ·´ĀĂ
ĥåĕĕõĕåÕĥąÕÅŵåµĥÕ
9618/33/O/N/24 [Turn over
* 0000800000012 *
Red
Green Yellow
Indigo
(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.
RootPtr
Green
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊßû·Ā×
© UCLES 2024 ĬāÛñÕĬøĦâāćíÛ¸ĕäøĂ
ĥĕÅĕµĕåõąååÅąµąµõÕ
9618/33/O/N/24
* 0000800000013 *
DO NOT WRITE IN THIS MARGIN
13
, ,
(b) A user-defined record structure is used to store the nodes of the linked list in part (a).
0 0 Red
1 Green
2 Yellow
DO NOT WRITE IN THIS MARGIN
3 Blue
4 Orange
5 Indigo
FreePtr 6 Violet
7
[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 BinTree. It returns the index of the record if the element is found, or it returns a null
pointer if the element is not found.
NowPtr .........................................................................................................................
WHILE NowPtr <> -1
DO NOT WRITE IN THIS MARGIN
IF ..................................................................................................................... THEN
NowPtr BinTree[NowPtr].LeftPtr
ELSE
IF BinTree[NowPtr].Data < Item THEN
.........................................................................................................................
ELSE
RETURN NowPtr
ENDIF
DO NOT WRITE IN THIS MARGIN
ENDIF
ENDWHILE
RETURN NowPtr
ENDFUNCTION
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊßù·Ā×
© UCLES 2024 ĬāÜòÍĞüĖ×÷ú¼ÿÀÁäĈĂ
ĥĕµÕõõÅĕĕÕõÅąÕĥõĥÕ
9618/33/O/N/24
© UCLES 2024
,
* 0000800000014 *
ĥµµĕµĕąµõÅõąÅĕŵµÕ
ĬāÛôÐĤćĞåñíėãĕÅĔĀĂ
ĬÍĊ®Ġ´íÈõÏĪÅĊàú¶Ă×
,
14
9618/33/O/N/24
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
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
© UCLES 2024
,
* 0000800000015 *
ĥµÅÕõõĥÕĥµåąÅõåõåÕ
ĬāÜóØĦċĎÔćĄÒ÷ĝđĔðĂ
ĬÏĊ®Ġ´íÈõÏĪÅĊàü¶Ă×
,
15
9618/33/O/N/24
BLANK PAGE
* 0000800000016 *
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/33/O/N/24