Computer Science (0478) · Oct/Nov 2021 · Mark scheme 23

Cambridge Computer Science (0478) mark scheme for paper 23, Oct/Nov 2021 — 0478/23/O/N/21, file 0478_w21_ms_23.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge IGCSE™
COMPUTER SCIENCE

0478/23

Paper 2

October/November 2021

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

[Turn over

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED
Generic Marking Principles

October/November 2021
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 2021

Page 2 of 9

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

October/November 2021
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.

© UCLES 2021

Page 3 of 9

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question

October/November 2021
www.dynamicpapers.com

Answer

Marks

Section A
1(a)

Constant name MaxNoTables
Value
20
Use
Storing the maximum number of tables available for a session

3

1(b)

Any three from:
MP1 Identifier / name of array used
MP2 Description of purpose of an identified array
MP3 Length of an identified array used
MP4 Type of data in an identified array
MP5 Explanation of number of arrays used, must be capable of storing all data required
MP6 Sample data for an identified array

4

One mark
MP7 Identifying more than one array
E.g. 3 sets of 4 arrays of twenty elements for each session, for example for lunch, TableLunch of type Boolean,
PassengerLunch, CabinLunch and DietReqLunch all type string
1(c)

© UCLES 2021

Any three from:
MP1 Input the maximum number of tables available for a session
MP2 Input the maximum number of tables available for every session
MP3 Storing each value input in a variable / an array
MP4 Validation check
MP5 Change the constant used for number of tables to a variable
MP6 Using the value input instead of 20 for max value for loop counter etc

Page 4 of 9

3

0478/23
Question
1(d)

Cambridge IGCSE – Mark Scheme
PUBLISHED
Answer
Any six from:
MP1 Input session
MP2 … with prompt
MP3 Validate input
MP4 Check number of tables available / check each table …
MP5 … for the session that has been input
MP6 If no tables available any session that has been input
MP7 … output suitable message

October/November 2021
www.dynamicpapers.com
Marks
6

Sample
REPEAT
OUTPUT "Which session do you want to book a table?"
INPUT Session
UNTIL Session >= 1 AND Session <= 3
IF TablesAvailable[Session] = 0
THEN
OUTPUT "No tables available "
ENDIF
1(e)

Explanation
Any four from:
MP1 Any changes required for the Array data types in Task 1
MP2 How the program displayed the options in Task 3
MP3 How the program selected the choice in Task 3
MP4 How the program dealt with incorrect choices in Task 3
MP5 How the program counted number of tables with vegetarian diners
MP6 How the program counted number of tables with vegan diners
MP7 How the program output number of tables with vegetarian/vegan diners
Programming statements should be used and must be explained.

© UCLES 2021

Page 5 of 9

4

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question

October/November 2021
www.dynamicpapers.com

Answer

Marks

Section B
2(a)

Line 1 should be Counter
Line 2 should be < 50
Line 3 should be RandUp(0,100) // RandUp(-1,100)
Line 4 should be Counter ← Counter + 1
1 Counter ← 0
2 WHILE Counter < 50 DO
3
NumRand[Counter} ← RandUp(0, 100)
4
Counter ← Counter + 1
5 ENDWHILE

4

2(b)

Any three from:
FOR Counter ← 0 TO 49 // FOR Counter ← 1 TO 50
NumRand[Counter] ← RandUp(0,100) / RandUp(-1,100)
NEXT // NEXT Counter

3

Question
3(a)(i)

Answer
one mark for sample, one mark for reason max four
Normal Sample
any password with at least 8 characters and one special character e.g. Password!
Reason
to test that normal data is accepted and processed correctly
Erroneous Sample
Reason

3(a)(ii)

4

any value that would be rejected e.g. secret
to test that erroneous data is rejected

Reason to test that Secret? which has 7 characters is rejected and Secret?? which has 8 characters is accepted
Boundary Sample 1 – Secret?
Boundary Sample 2 – Secret??

© UCLES 2021

Marks

Page 6 of 9

3

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

October/November 2021
www.dynamicpapers.com

Question

Answer

3(b)

Any two methods, one mark for method, one mark for description max four
E.g.
Asking the user to enter the password twice and comparing the values (1) only accepting the data if both entries are
identical (1)
Displaying the password as it is entered (1) so the user can put right errors have been made as the password was typed (1)

© UCLES 2021

Page 7 of 9

Marks
4

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
4

Answer
One mark for each correct column
Counter

Pass

0

0

1

1

2
3

2

5(a)

© UCLES 2021

OUTPUT

0.4

Extra Help

30
3

44

7

25

8

22
4

54
6
999

Question

Help

60

17

10

5

88

6

9

Marks

24

4
5

Mark

October/November 2021
www.dynamicpapers.com

Answer
WEIGHT – Number, comparisons / calculations may be required
PRICE – Currency, the price is in dollars / money
CODE – Text, no calculations required, could be numbers or characters
STOCK – Number, comparisons / calculations may be required
Page 8 of 9

Marks
4

0478/23
Question
5(b)

October/November 2021
www.dynamicpapers.com

Cambridge IGCSE – Mark Scheme
PUBLISHED
Answer
Field: CATEGORY
Table: COMPUTER

Marks

MANUFACTURER

PRICE

CODE

WEIGHT

COMPUTER

COMPUTER

COMPUTER

COMPUTER

Sort:
Show:

Criteria:


< 2.5

or:
One mark for correct rows Field and Table
One mark for correct Show row
One mark for correct Criteria row

© UCLES 2021

Page 9 of 9

3

Advertisement