Computer Science (0478) · Oct/Nov 2022 · Mark scheme 21

Cambridge Computer Science (0478) mark scheme for paper 21, Oct/Nov 2022 — 0478/21/O/N/22, file 0478_w22_ms_21.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge IGCSE™
COMPUTER SCIENCE

0478/21

Paper 2 Problem-solving and Programming

October/November 2022

MARK SCHEME
Maximum Mark: 50

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 October/November 2022 series for most
Cambridge IGCSE™, Cambridge International A and AS Level components and some Cambridge O Level
components.

This document consists of 9 printed pages.
© UCLES 2022

[Turn over

0478/21

Cambridge IGCSE – Mark Scheme
PUBLISHED
Generic Marking Principles

October/November 2022
www.dynamicpapers.com

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.
GENERIC MARKING PRINCIPLE 1:
Marks must be awarded in line with:
•
•
•

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.

GENERIC MARKING PRINCIPLE 2:
Marks awarded are always whole marks (not half marks, or other fractions).
GENERIC MARKING PRINCIPLE 3:
Marks must be awarded positively:
•
•
•
•
•

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.

GENERIC MARKING PRINCIPLE 4:
Rules must be applied consistently, e.g. in situations where candidates have not followed instructions or in the application of generic level
descriptors.

© UCLES 2022

Page 2 of 9

0478/21

Cambridge IGCSE – Mark Scheme
PUBLISHED

October/November 2022
www.dynamicpapers.com

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).
GENERIC MARKING PRINCIPLE 6:
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.

Please note the following further points:
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.
If a word is underlined, this exact word must be present.
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.

© UCLES 2022

Page 3 of 9

Cambridge IGCSE – Mark Scheme
PUBLISHED

0478/21
Question

October/November 2022
www.dynamicpapers.com

Answer

Marks

Section A
1(a)(i)

Many correct answers, the names used must be meaningful. The names given are examples only.

5

One mark per mark point, max five
MP1
MP2
MP3
MP4
MP5
MP6
1(a)(ii)

One mark per mark point, max two
MP1
MP2
MP3

1(b)

2

use a loop e.g. FOR…NEXT / REPEAT…UNTIL / WHILE…DO
to input the values for each element in every array
append each value input to the end of the array

One mark per mark point, max two
MP1
MP2
MP3

© UCLES 2022

name one e.g. Name, Age, Gender, Type, TeamMember, AnnualFee, Paid
one appropriate data type must match name e.g. string, integer, char, string, Boolean, real, Boolean
sample data for one appropriate array
all arrays mentioned have appropriate names
all arrays mentioned have appropriate data types
sample data for all arrays e.g. Sue, 9, F, Junior, True, 9.00, False

2

use a loop/ FOR/REPEAT/WHILE to check all members
use a conditional statement / IF to see if the paid field is marked as False
only transfer the data of those members whose paid field is marked as True to a set of new arrays
// delete the details of the members who have not paid

Page 4 of 9

Cambridge IGCSE – Mark Scheme
PUBLISHED

0478/21
Question
1(c)

Answer
One mark per mark point, max six
MP1
MP2
MP3
MP4
MP5
MP6
MP7
MP8

Example
FOR Member  1 TO Total
CASE Age[Member] OF
18 : Type[Member]  "Adult"
50 : Type[Member]  "Senior"
80 : Type[Member]  "Golden"
ENDCASE

© UCLES 2022

Marks
6

loop through all the members
any suitable correct comparison of age
if 18 Change membership type to adult
if 50 Change membership type to senior
if 80 Change membership type to golden
check if team member
no store appropriate full fee
yes store 90% of appropriate full fee

IF Team[Member]
THEN
CASE Type[Member] OF
"Junior" : Fee[Member]
"Adult" : Fee[Member]
"Senior" : Fee[Member]
ENDCASE
ELSE
CASE Type[Member] OF
"Junior" : Fee[Member]
"Adult" : Fee[Member]
"Senior" : Fee[Member]
"Golden" : Fee[Member]
ENDCASE
ENDIF
NEXT Member

October/November 2022
www.dynamicpapers.com

 JuniorFee * 0.9
 AdultFee * 0.9
 SeniorFee * 0.9




JuniorFee
AdultFee
SeniorFee
GoldenFee

Page 5 of 9

Cambridge IGCSE – Mark Scheme
PUBLISHED

0478/21
Question
1(d)

October/November 2022
www.dynamicpapers.com

Answer
Explanation

Marks
5

One mark per mark point, max five
MP1
MP2
MP3
MP4
MP5
MP6
MP7
MP8

how the program checked all the members // use of loop
how the program identified a member who has not paid their (annual) fee // use of condition
how the program kept a running total of members who have not paid their (annual) fees
for each of the three types of membership that require a fee // excluding golden members
how the program calculated a percentage for members who had not paid…
for each of the three types of membership that require a fee
how the program displayed a percentage for members who had not paid
all three percentages displayed with suitable messages

Programming statements when used must be explained.

Question

Answer

Marks

Section B
2(a)

One mark per mark point, max six
•
•
•
•
•
•

© UCLES 2022

6

Line 1 100
Line 7 Value > 100 // Value >= 101
Line 11 Reading[Value] + 1
Line 14 INPUT Value
Line 18 Reading[Count]
Line 19 Count – 1

Page 6 of 9

Cambridge IGCSE – Mark Scheme
PUBLISHED

0478/21
Question
2(b)

Answer
One mark per mark point, max three
•
•
•

October/November 2022
www.dynamicpapers.com
Marks
3

use an IF/conditional statement
to check if Reading[Count] not equal to zero
before outputting the value // between statements 17 and 18 // code sample showing position

IF Reading[Count] <> 0
THEN
OUTPUT
ENDIF

Question
3(a)

Answer
Two marks per check, description must match name of check if given, max six
•
o
•
o
•
o

3(b)

6

Check 1 use a type check
to ensure that the value is a number / integer
Check 2 use a length check
to ensure that there are only 4 characters / digits
Check 3 use a range check
to ensure that the value is >= 1000 and <=9999

One mark per mark point, max three
MP1
MP2
MP3
MP4

© UCLES 2022

Marks

3

input the new PIN
input the new PIN again // ask the user to check the number on screen
check that both PINs are the same // confirm that it is the PIN to use
check that the new PIN is not the same as the old PIN

Page 7 of 9

Question
4(a)

Answer

Marks

One mark for each correct column, max four
Sold

4

Stock

Total

50

0

24

26

24

12

14

OUTPUT

Add new stock

64

36

6

58

42

30

28

72

12

16

18

Add new stock

66

84

48

102

-1
4(b)

102

One mark for identification of error, max one
•

3

the stock level will fall below zero / become negative

One mark per mark point, max two
•
•
•

© UCLES 2022

October/November 2022
www.dynamicpapers.com

Cambridge IGCSE – Mark Scheme
PUBLISHED

0478/21

before subtracting the amount Sold from Stock
test that the stock level / Stock is greater than the rolls to be sold / Sold
provide a suitable error message / ask to re-input

Page 8 of 9

Cambridge IGCSE – Mark Scheme
PUBLISHED

0478/21
Question
5(a)

Answer

Marks

One mark per mark point, max two
•
•

5(b)

October/November 2022
www.dynamicpapers.com

2

ItemCode
uniquely identifies each item

One mark per mark point, max three
•
•
•

3

correct rows Field, Table and Sort
correct row Show
correct Criteria row <10 or <=9
Field: ItemCode
Table: WAREHOUSE

Manufacturer

Level

WAREHOUSE

WAREHOUSE

Sort:
Show:

Criteria:

<10

or:

© UCLES 2022

Page 9 of 9

Advertisement