Cambridge O Level: Computer Science 2210/23
Cambridge O Level: Computer Science 2210/23
, ,
Cambridge O Level
¬O. 4mHuOªE`|5W
¬[tOmYsx98|-Q
¥EU55e5EU 5Eu5U
* 2 0 0 5 8 9 4 8 8 5 *
1 hour 45 minutes
INSTRUCTIONS
● Answer all questions.
● Use a black or dark blue pen. You may use an HB pencil for any diagrams or graphs.
● 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.
● 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 (ST) 347142
© UCLES 2024 [Turn over
* 0000800000002 *
1 Tick (✓) one box to show which of the following is used to validate data on input.
A checksum
C type check
D visual check
[1]
A abstraction
B structure diagram
C test data
D variable
[1]
Draw one line to link each logic gate to its correct symbol. Not all logic gate symbols will be used.
AND
NOR
DO NOT WRITE IN THIS MARGIN
XOR
ĬÍĊ®Ġ´íÈõÏĪÅĊÝú·þ×
[4]
© UCLES 2024 ĬāÙóÎīùüâþĂÖĀĂýĩćĂ
ĥĕąÕõÕĥÕõÕąÅąõåµĕÕ
2210/23/O/N/24
* 0000800000003 *
DO NOT WRITE IN THIS MARGIN
3
, ,
4 Complete the paragraph about databases. Use terms from the list. You may need to use a term
more than once. Some of the terms in the list will not be used.
5 One stage of the program development life cycle is the analysis stage.
Identify and describe two other stages of the program development life cycle.
Stage ................................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
..........................................................................................................................................................
Stage ................................................................................................................................................
Description .......................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
..........................................................................................................................................................
[6]
ĬÏĊ®Ġ´íÈõÏĪÅĊÝü·þ×
© UCLES 2024 ĬāÚôÖĝõČ×üïēÜúÙĩ÷Ă
ĥĕõĕµµąµĥåÕÅąĕÅõąÕ
2210/23/O/N/24 [Turn over
* 0000800000004 *
6 An incomplete algorithm has been written in pseudocode to count the number of values stored in
an array and to find their average.
Values have been stored in the array starting at A[1]
All the values to be counted are non-zero.
A value of zero in the array indicates there are no more values stored.
02 DECLARE C : INTEGER
03 DECLARE W : INTEGER
05 W 0
06 C .................................................................................................
08 W .................................................................................................
09 C C + 1
11 X .................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
DO NOT WRITE IN THIS MARGIN
ĬÍĊ®Ġ´íÈõÏĪÅĊßú·Ā×
© UCLES 2024 ĬāÚñÖħćýäöøĜúÖûùÿĂ
ĥååĕõµąĕąąåÅÅĕĥõĕÕ
2210/23/O/N/24
* 0000800000005 *
DO NOT WRITE IN THIS MARGIN
5
, ,
The array
A ................................................................................................................................................
The variables
C ................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
X ................................................................................................................................................
W ................................................................................................................................................
[3]
7 A programmer is testing a program that requires a positive value between 1 and 100 inclusive to
be entered. The range check in the program is to be tested.
For each type of test data, give an example of the value(s) to be used and the expected outcome.
Type 1 ..............................................................................................................................................
Example ...........................................................................................................................................
Outcome ...........................................................................................................................................
..........................................................................................................................................................
Type 2 ..............................................................................................................................................
Example ...........................................................................................................................................
DO NOT WRITE IN THIS MARGIN
Outcome ...........................................................................................................................................
..........................................................................................................................................................
Type 3 ..............................................................................................................................................
Example ...........................................................................................................................................
Outcome ...........................................................................................................................................
..........................................................................................................................................................
[9]
DO NOT WRITE IN THIS MARGIN
ĬÏĊ®Ġ´íÈõÏĪÅĊßü·Ā×
© UCLES 2024 ĬāÙòÎġċíÕĄĉÍÞÞßùïĂ
ĥåÕÕµÕĥõĕõõÅÅõąµąÕ
2210/23/O/N/24 [Turn over
* 0000800000006 *
8 A logic circuit is to be built to control the automatic opening of a window. The window W opens if
the temperature T is too high, the heater H is off, and the air conditioning A is off.
A T H W
0 0 0
0 1 0
0 1 1
1 0 0
1 0 1
1 1 1
[4]
DO NOT WRITE IN THIS MARGIN
ĬÑĊ®Ġ´íÈõÏĪÅĊÞü¶þ×
© UCLES 2024 ĬāÚòÑīģ÷Íćüè¾Ö¾ÑÿĂ
ĥõõÕµõĥÕÕĕÕÅąõåõÕÕ
2210/23/O/N/24
* 0000800000007 *
DO NOT WRITE IN THIS MARGIN
7
, ,
START
Is A = B AND No
STOP
B = C ?
Yes
DO NOT WRITE IN THIS MARGIN
Is A >= B OR Yes
B A
A >= C ? C A
No
A C
B C
Identify four errors in the flowchart and suggest a correction for each error. You may label each
error on the diagram with the corresponding error number.
Error 1 ..............................................................................................................................................
Correction .........................................................................................................................................
DO NOT WRITE IN THIS MARGIN
..........................................................................................................................................................
Error 2 ..............................................................................................................................................
Correction .........................................................................................................................................
..........................................................................................................................................................
Error 3 ..............................................................................................................................................
Correction .........................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
Error 4 ..............................................................................................................................................
Correction .........................................................................................................................................
..........................................................................................................................................................
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞú¶þ×
© UCLES 2024 ĬāÙñÙĝğćìñąġĚÞĚÑïĂ
ĥõąĕõĕąµÅĥąÅąĕŵÅÕ
2210/23/O/N/24 [Turn over
* 0000800000008 *
10 An algorithm has been written in pseudocode to check that a password meets a set of rules.
(a) Complete the three trace tables using the data shown for each one.
Data: MYWORD
ĬÑĊ®Ġ´íÈõÏĪÅĊàü¶Ā×
© UCLES 2024 ĬāÙôÙħčĂÏïþĪ¼Ă¼ÁćĂ
ĥÅÕĕµĕąĕåÅõÅÅĕĥµÕÕ
2210/23/O/N/24
* 0000800000009 *
DO NOT WRITE IN THIS MARGIN
9
, ,
Data: M!word
Data: My!Hidden
[6]
DO NOT WRITE IN THIS MARGIN
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
DO NOT WRITE IN THIS MARGIN
ĬÓĊ®Ġ´íÈõÏĪÅĊàú¶Ā×
© UCLES 2024 ĬāÚóÑġđòêĉóßĠúĠÁ÷Ă
ĥÅåÕõõĥõµµåÅÅõąõÅÕ
2210/23/O/N/24 [Turn over
* 0000800000010 *
11 Building materials are sold in bags. A new database table called BuildStock has been set up to
store details about the materials for sale. Part of this table is given.
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
SELECT .............................................................................................................................
FROM ..................................................................................................................................
WHERE ...............................................................................................................................
[2]
(ii) Explain how another SQL statement using a different field could be used to display the
same information.
DO NOT WRITE IN THIS MARGIN
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [2]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝü¸þ×
© UCLES 2024 ĬāÜôÔĥĕĘÑøąÄØĄÐùïĂ
ĥĕµÕµĕåĕąõõąÅµĥµĥÕ
2210/23/O/N/24
DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN
© UCLES 2024
,
* 0000800000011 *
ĥĕÅĕõõÅõĕąåąÅÕąõõÕ
ĬāÛóÜģęĨèĂüąĄüČùÿĂ
ĬÓĊ®Ġ´íÈõÏĪÅĊÝú¸þ×
,
11
2210/23/O/N/24
BLANK PAGE
[Turn over
* 0000800000012 *
12 Members of a litter picking group complete a litter pick every month. Members’ names are stored
in one-dimensional (1D) array PickerName[]
Each member stores the weight of the litter they have picked in another one-dimensional (1D)
array PickedWeight[]
The weights are in kilograms with one decimal place, for example 8.4
The position of each member’s data in the two arrays is the same. For example, the member
stored at index 10 in PickerName[] and at index 10 in PickedWeight[] is the same.
Every month, there is a small prize awarded to the members of the group who have the two
You do not need to declare any arrays or variables; you may assume that this has already been
done.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
DO NOT WRITE IN THIS MARGIN
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
ĬÑĊ®Ġ´íÈõÏĪÅĊßü¸Ā×
© UCLES 2024 ĬāÛòÜĩīġÓĀóþâØêĩ÷Ă
ĥåĕĕµõÅÕõåÕąąÕåõĥÕ
2210/23/O/N/24
* 0000800000013 *
DO NOT WRITE IN THIS MARGIN
13
, ,
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
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 ĬāÜñÔğħđæúþËöàîĩćĂ
ĥåĥÕõĕåµĥÕąąąµÅµõÕ
2210/23/O/N/24 [Turn over
* 0000800000014 *
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
.................................................................................................................................................. [15]
DO NOT WRITE IN THIS MARGIN
ĬÍĊ®Ġ´íÈõÏĪÅĊàùµĂ×
© UCLES 2024 ĬāÛóÑġĜĩØðĉĨÚõúÙÿĂ
ĥąĥĕµõĥĕąÅąÅÅõĥõåÕ
2210/23/O/N/24
DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN DO NOT WRITE IN THIS MARGIN
© UCLES 2024
,
* 0000800000015 *
ĥąĕÕõĕąõĕµÕÅÅĕąµµÕ
ĬāÜôÙħĘęáĊøáþýÞÙïĂ
ĬÏĊ®Ġ´íÈõÏĪÅĊàûµĂ×
,
15
2210/23/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 ĬāÜñÙĝĦĐÖĈïêàáĀÉćĂ
ĥµÅÕµĕąÕõĕåÅąĕåµåÕ
2210/23/O/N/24