Cambridge IGCSE™: Computer Science 0478/23
Cambridge IGCSE™: Computer Science 0478/23
Cambridge IGCSE™: Computer Science 0478/23
Published
This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of the
examination. It shows the basis on which Examiners were instructed to award marks. It does not indicate the
details of the discussions that took place at an Examiners’ meeting before marking began, which would have
considered the acceptability of alternative answers.
Mark schemes should be read in conjunction with the question paper and the Principal Examiner Report for
Teachers.
Cambridge International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes for the May/June 2023 series for most
Cambridge IGCSE, Cambridge International A and AS Level and Cambridge Pre-U components, and some
Cambridge O Level components.
m
co
e.
at
-m
am
x
.e
w
w
w
These general marking principles must be applied by all examiners when marking candidate answers. They should be applied alongside the
specific content of the mark scheme or generic level descriptors for a question. Each question paper and mark scheme will also comply with these
marking principles.
the specific content of the mark scheme or the generic level descriptors for the question
the specific skills defined in the mark scheme or in the generic level descriptors for the question
the standard of response required by a candidate as exemplified by the standardisation scripts.
Marks awarded are always whole marks (not half marks, or other fractions).
marks are awarded for correct/valid answers, as defined in the mark scheme. However, credit is given for valid answers which go beyond
the scope of the syllabus and mark scheme, referring to your Team Leader as appropriate
marks are awarded when candidates clearly demonstrate what they know and can do
marks are not deducted for errors
marks are not deducted for omissions
answers should only be judged on the quality of spelling, punctuation and grammar when these features are specifically assessed by the
question as indicated by the mark scheme. The meaning, however, should be unambiguous.
Rules must be applied consistently, e.g. in situations where candidates have not followed instructions or in the application of generic level
m
co
descriptors.
e.
at
-m
am
x
.e
w
w
© UCLES 2023 Page 2 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
GENERIC MARKING PRINCIPLE 5:
Marks should be awarded using the full range of marks defined in the mark scheme for the question (however; the use of the full mark range may
be limited according to the quality of the candidate responses seen).
Marks awarded are based solely on the requirements as defined in the mark scheme. Marks should not be awarded with grade thresholds or
grade descriptors in mind.
The words in bold in the mark scheme are important text that needs to be present, or some notion of it needs to be present. It does not have to
be the exact word, but something close to the meaning.
A single forward slash means this is an alternative word. A double forward slash means that this is an alternative mark point.
Ellipsis (…) on the end of one-mark point and the start of the next means that the candidate cannot get the second mark point without being
awarded the first one. If a mark point has an ellipsis at the beginning, but there is no ellipsis on the mark point before it, then this is just a follow-on
sentence and can be awarded without the previous mark point.
m
co
e.
at
-m
am
x
.e
w
w
© UCLES 2023 Page 3 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
1 B 1
m
co
intended when data is copied
e.
… from one source to another
at
-m
am
x
.e
w
w
© UCLES 2023 Page 4 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
4(b) One mark for each appropriate verification check, max two 4
One mark for each correct accompanying use, max two
For example:
Description Check
format check
to check that some data has been
entered
length check
to check that the data entered has an
appropriate number of characters presence check
m
number contains no errors
co
e.
at
-m
am
x
.e
w
w
© UCLES 2023 Page 5 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
Example answers:
WHILE Loop
REPEAT Loop
REPEAT
OUTPUT "Enter a number between 15 and 35 inclusive"
INPUT Length
UNTIL Length >= 15 AND LENGTH <= 35
m
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 6 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
Line 09 / ENDCASE
should be ENDIF
Correct algorithm
01 Counter 0
02 Total 0
03 WHILE Counter < 100 DO
04 INPUT Number
05 IF Number > 0
06 THEN
07 Total Total + Number
08 Counter Counter + 1
09 ENDIF
10 ENDWHILE
11 OUTPUT "The total value of your numbers is ", Total
12 OUTPUT "The average value of your numbers is ", Total / 100
m
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 7 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
m
co
e.
at
-m
xam
.e
w
w
© UCLES 2023 Page 8 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
5 1 1 0 0.5 Rejected
50 10 10 5 5
50 52 10 10.4 Rejected
57 11 11.4 Rejected
550 –1 550
m
7(b) One mark per mark point, max two 2
co
to find if an input is divisible by (both 5 and) 10
e.
at
… add them together and output the total
-m
amx
.e
w
w
© UCLES 2023 Page 9 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
8(a) One mark for each correct gate, with the correct input(s) as shown. 4
m
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 10 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
A B C Z
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0
m
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 11 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
For example:
INPUT Saying
OPENFILE "Quotations.txt" FOR WRITE
WRITEFILE "Quotations.txt", Saying
CLOSEFILE "Quotations.txt"
Fields 5
Records 12
m
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 12 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
Type Alphanumeric
Private Boolean
Rate$ Integer
NumberGuest Integer
Example answer:
m
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 13 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
Requirements (techniques):
R1 Output menu and input choice, with validation (range check, output with messages, input with prompts).
R2 Input number of new entries, within limits, update current size of contacts, input new data and sort the array (range
check, totalling, iteration and bubble sort).
R3 Output array whole contents and delete contents of array (iteration, output with labelling/messages, array initialisation).
m
co
e.
at
-m
am
x
.e
w
w
© UCLES 2023 Page 14 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
m
ENDWHILE
co
WHILE Choice < 1 OR Choice > 3 DO
e.
at
OUTPUT "Incorrect entry – please enter 1, 2, or 3"
-m
INPUT Choice
am
ENDWHILE
x
.e
w
w
© UCLES 2023 Page 15 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
m
THEN
co
Flag TRUE
e.
at
Temp1 Contacts[Count, 1]
-m
Temp2 Contacts[Count, 2]
am
x
.e
w
w
© UCLES 2023 Page 16 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Question Answer Marks
11 Contacts[Count, 1] Contacts[Count + 1, 1]
Contacts[Count, 2] Contacts[Count + 1, 2]
Contacts[Count + 1, 1] Temp1
Contacts[Count + 1, 2] Temp2
ENDIF
NEXT Count
UNTIL NOT Flag
ENDIF
ENDIF
// display all contacts
IF Choice = 2
THEN
IF CurrentSize > 0
THEN
OUTPUT "Name and Telephone Number"
FOR Count 1 TO CurrentSize
OUTPUT Contacts[Count, 1], " ", Contacts[Count, 2]
NEXT Count
ENDIF
ENDIF
// delete all contacts
IF Choice = 3
THEN
FOR Count 1 TO 100
FOR Count2 1 TO 2
Contacts[Count, Count2] ""
NEXT Count2
NEXT Count
ENDIF
m
ENDWHILE
co
e.
at
-m
amx
.e
w
w
© UCLES 2023 Page 17 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
AO2: Apply knowledge and understanding of the principles and concepts of computer science to a given context, including the
analysis and design of computational or programming problems
At least one programming technique Some programming techniques used The range of programming techniques
has been used. are appropriate to the problem. used is appropriate to the problem.
Any use of selection, iteration, More than one technique seen applied All criteria stated for the scenario have
counting, totalling, input and output. to the scenario, check the list of been covered by the use of
techniques needed. appropriate programming techniques,
No creditable check the list of techniques needed.
response.
Some data has been stored but not Some of the data structures chosen The data structures chosen are
appropriately. are appropriate and store some of the appropriate and store all the data
data required. required.
Any use of variables or arrays or other
language dependent data structures More than one data structure used to The data structures used store all the
e.g. Python lists. store data required by the scenario. data required by the scenario.
m
co
e.
at
-m
am
x
.e
w
w
© UCLES 2023 Page 18 of 19
w
0478/23 Cambridge IGCSE – Mark Scheme May/June 2023
PUBLISHED
Marking Instructions in italics
Program seen without relevant Program seen with some relevant The program has been fully
comments. comment(s). commented.
Some identifier names used are The majority of identifiers used are Suitable identifiers with names
appropriate. appropriately named. meaningful to their purpose have been
used throughout.
Some of the data structures used have Most of the data structures used have
meaningful names. meaningful names. All of the data structures used have
meaningful names.
The solution is illogical. The solution contains parts that may The program is in a logical order.
be illogical.
No creditable The solution is inaccurate in many The solution contains parts that are The solution is accurate.
response. places. inaccurate.
Solution logically performs all the tasks
Solution contains few lines of code Solution contains lines of code with given in the scenario. Ignore minor
with errors that attempt to perform a some errors that logically perform syntax errors.
task given in the scenario. tasks given in the scenario. Ignore
minor syntax errors.
The solution attempts at least one of The solution meets most of the The solution meets all the
the requirements. requirements. requirements given in the question.
m
Solution contains lines of code that Solution contains lines of code that Solution performs all the tasks given in
co
attempt at least one task given in the perform most tasks given in the the scenario.
e.
at
scenario. scenario.
-m
am
x
.e
w
w
© UCLES 2023 Page 19 of 19