Computer Science Paper 2 MS
Computer Science Paper 2 MS
MARK SCHEME
Maximum Mark : 75
[Turn over
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
1 C 1
2(a) One mark for each correct line 4
Description Pseudocode statement
a statement to count
FOR Count 1 TO 10
3
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
NEXT Count
Average Total / 50
OUTPUT "The average is ", Average
3 One mark for description, one mark for expansion and one mark for example e.g. 3 •
To ensure that the program works as expected and rejects any invalid data that is input.
Normal data (to check the results of a calculation)
4 One mark for each point max three. 3 for discussion at the STM
• variables and constants are used to store single items of data
• the data stored in variables and constants are accessed by identifier • It could be argued that some
variables store more than a
• variables may change during the execution of a program // can answer by example single item of data.
• constants will remain the same during the execution of a program // can answer by • The last word in the second
example bullet point should perhaps
be ‘identifier(s)’.
4
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
For example:
Food ordering system
5
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
7(a) One mark for each correct gate, with the correct input(s) as shown. 5
7(b) 4
A B C X
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 1
1 1 1 0
4 marks for 8 correct outputs
3 marks for 6/7 correct outputs
2 marks for 4/5 correct outputs
1 mark for 2/3 correct outputs
6
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
8(a) 4
0 0
1 5.50 5.50
2 8.90 3.40
3 15.15 6.25
4 19.00 3.85
5 8.00 -11.00
Correction
One mark for placement and one mark action
7
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
For example – after the input box insert a decision box to reject negative numbers
8
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
9(a) 20 1
9(b)(i) CatNo 1
9(b)(ii) It is a unique identifier 1
9(c) 2 marks for 4 correct data types 2
CatNo Text/Alphanumeric
Title Text/alphanumeric
Fiction Boolean
Price Real
9(d) One mark for each correct row 2 Any errors in order penalise
BK08 The Princesses Story B Penn once and follow through
BK31 Networking for Beginners A Smith
9(e) One mark if two correct or two marks if completely correct 2
Title
BookList
Author = "B Penn"
9
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
DECLARE X : INTEGER
DECLARE Y : REAL
DECLARE Z : BOOLEAN
10(b) One mark for using FUNCTION and ENDFUNCTION and RETURNS BOOLEAN 6
One mark for naming the function Same
One mark for defining the two parameters correctly
One mark for comparing the two parameters and using ROUND
One mark for correctly returning TRUE and FALSE
One mark for correct function call
10
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
Data Structures required names shown underlined must be used as given in the scenario
Arrays or lists TeamName, TeamPoints,
(TotalPoints, TotalAwayWin, TotalHomeWin, TotalDraw and TotalLost may be seen but no
requirement to store)
Variables LeagueSize, MatchNo
Constants AwayWin, HomeWin, Draw, and Loss could be variables
Requirements (techniques)
R1 calculates total result for all matches played by each team (nested iteration and totalling)
R2 counts the total number of away wins, home wins, draw matches and lost matches for each team (nested iteration
and counting)
R3 outputs for each team name, total result, total number of away wins, home wins, drawn matches and lost matches
(output and selection)
R4 finds and outputs the name of the team with the highest result and the team with the lowest result. (output and
selection)
11
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
// meaningful identifier names and appropriate data structures to store the data required
DECLARE TeamCounter : INTEGER For
DECLARE MatchCounter : INTEGER
information
DECLARE TeamPoints : INTEGER
DECLARE AwayWinNo : INTEGER inline with
DECLARE HomeWinNo : INTEGER instruction on
DECLARE DrawNo : INTEGER the QP
DECLARE LostNo : INTEGER
DECLARE HighestPoints : INTEGER
DECLARE LowestPoints : INTEGER
DECLARE TopTeam : INTEGER
DECLARE BottomTeam : INTEGER
CONSTANT AwayWin = 3
CONSTANT HomeWin = 2
CONSTANT Draw = 1
CONSTANT Lost = 0
IF TeamCounter = 1
THEN
HighestResult TotalPoints[TeamCounter]
LowestResult TotalPoints[TeamCounter]
ENDIF
13
0478/22 Cambridge International IGCSE - Mark Scheme March 2023
PRE-STANDARDISATION
NEXT TeamCounter
OUTPUT "Top Team ", TeamName[TopTeam] // output highest and lowest team results
OUTPUT "Bottom Team ", TeamName[BottomTeam]
14
Marking Instructions in italics
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 Some programming techniques used are The range of programming techniques
technique has been used. appropriate to the problem. used is appropriate to the problem.
Any use of selection, iteration, More than one technique seen applied to All criteria stated for the scenario have
been covered by the use of appropriate
counting, totalling, input and the scenario, check list of techniques programming techniques, check list of
No creditable
output. needed. techniques needed.
response.
Some data has been stored but not Some of the data structures chosen are The data structures chosen are
appropriately. appropriate and store some of the data appropriate and store all the data
Any use of variables or arrays or required. required.
other language dependent data More than one data structure used to The data structures used store all the
structures e.g. Python lists. store data required by the scenario. data required by the scenario.
Page 15
Marking Instructions in italics
Page 16