Computer Science (0478) · May/June 2024 · Mark scheme 23

Cambridge Computer Science (0478) mark scheme for paper 23, May/June 2024 — 0478/23/M/J/24, file 0478_s24_ms_23.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge IGCSE™
COMPUTER SCIENCE

0478/23

Paper 2 Algorithms, Programming and Logic

May/June 2024

MARK SCHEME
Maximum Mark: 75

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 2024 series for most
Cambridge IGCSE, Cambridge International A and AS Level and Cambridge Pre-U components, and some
Cambridge O Level components.

This document consists of 18 printed pages.
© Cambridge University Press & Assessment 2024

[Turn over

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED
Generic Marking Principles

May/June 2024
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 descriptions 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.

© Cambridge University Press & Assessment 2024

Page 2 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

May/June 2024
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.

Mark scheme abbreviations
/ separates alternative words / phrases within a marking point
// separates alternative answers within a marking point
underline actual word given must be used by candidate (grammatical variants accepted)
max indicates the maximum number of marks that can be awarded
( ) the word / phrase in brackets is not required, but sets the context
Note: No marks are awarded for using brand names of software packages or hardware.

© Cambridge University Press & Assessment 2024

Page 3 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
1

Answer

Marks

A

1

Question
2(a)

May/June 2024
www.dynamicpapers.com

Answer

Marks
4

One mark for each correct line
Logic gate symbol

Logic function
AND

XOR
NOT

NAND
OR

© Cambridge University Press & Assessment 2024

Page 4 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
2(b)

May/June 2024
www.dynamicpapers.com

Answer
A

B

C

Z

0

0

0

0

0

0

1

1

0

1

0

0

0

1

1

0

1

0

0

1

1

0

1

0

1

1

0

0

1

1

1

0

Marks
4

Four marks for eight correct outputs.
Three marks for six or seven correct outputs.
Two marks for four or five correct outputs.
One mark for two or three correct outputs

Question
3

Answer
One mark for a correct statement about each data type and one mark for a correct example of data for each data type.
For example:
String A group of characters consisting of letters, numbers and special characters [1], Cambridge2024 [1]
Char A single character [1] X [1]

© Cambridge University Press & Assessment 2024

Page 5 of 18

Marks
4

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
4(a)

Answer
One mark per mark point, max four



Line 01 / DECLARE People : ARRAY[1:50, 1:3] OF REAL
should be DECLARE People : ARRAY[1:50, 1:3] OF STRING
Line 10 / Count  100
should be Count  1
Line 12 / CASE OF
should be REPEAT
Line 27 / UNTIL NOT Count
should be UNTIL NOT Continue // UNTIL Continue = FALSE

DECLARE People : ARRAY[1:50, 1:3] OF STRING
DECLARE Count : INTEGER
DECLARE Response : CHAR
DECLARE Continue : BOOLEAN
FOR I  1 TO 50
FOR J  1 TO 3
People[I, J]  ""
NEXT J
NEXT I
Count  1
Continue  TRUE
REPEAT
OUTPUT "Enter the last name"
INPUT People[Count, 1]
OUTPUT "Enter the first name"
INPUT People[Count, 2]
OUTPUT "Enter the city"
INPUT People[Count, 3]
OUTPUT "Do you want to enter another name (Y or N)?"
INPUT Response

© Cambridge University Press & Assessment 2024

Marks
4

Correct algorithm:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20

May/June 2024
www.dynamicpapers.com

Page 6 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question

May/June 2024
www.dynamicpapers.com

Answer

4(a)

21
IF Response = 'N'
22
THEN
23
Continue  FALSE
24
ELSE
25
Count  Count + 1
26
ENDIF
27 UNTIL NOT Continue // UNTIL Response = 'N'

4(b)




Use of appropriate loop
Method to check array maximum not exceeded
Method to check current / next array element not empty
Output of all three array elements per array row (and no more)

Marks

4

Example algorithm:
Count  1
WHILE Count <= 50 AND People[Count, 1] <> "" DO
OUTPUT People[Count, 1]
OUTPUT People[Count, 2]
OUTPUT People[Count, 3]
Count  Count + 1
ENDWHILE
4(c)

4

One mark per mark point, max four
MP1
MP2
MP3
MP4
MP5

Declare/use a variable that is set to the maximum size of the array
… at the start of the program
After line 18
… check that the value of the counting variable is not greater than the array maximum variable
… and if it is do not allow any more entries / set the value of Response to 'N' / add additional condition to UNTIL
statement that checks if the counting variable is at maximum

© Cambridge University Press & Assessment 2024

Page 7 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
5(a)

Answer
MP1
MP2
MP3
MP4
MP5
MP6

S

T

A

Limit

Count

Value

0

10000

0

0

10

1

30

30

2

18

18

48

3

8

8

56

4

25

81

5

12

93

6

17

110

7

2

112

8

50

162

9

15

177

10

5

2

182

5(b)

6

L

50

Marks

Correct L column
Correct S column
Correct T column
Correct A column
Correct Limit, Count and Value columns
Correct OUTPUT columns

30

18.2

11

OUTPUT

L = 50 S = 2
T = 182 A = 18.2
2

One mark per mark point, max two

Any two from finds / outputs the largest, smallest, total and average of a set of numbers
All four of finds / outputs the largest, smallest, total and average of a set of numbers

© Cambridge University Press & Assessment 2024

May/June 2024
www.dynamicpapers.com

Page 8 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question

Answer

5(c)



5(d)

One mark for every two appropriate identifiers, max two

(The identifiers L, S, T and A) are single letters
… so do not give any indication of what values they hold.
For programs to be maintainable, identifiers should have meaningful names.

Original identifier

Improved identifier

L

Largest / Maximum

S

Smallest / Minimum

T

Total / Sum

A

Average / Mean

© Cambridge University Press & Assessment 2024

Page 9 of 18

May/June 2024
www.dynamicpapers.com
Marks
3

2

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
6(a)

Answer
One mark for each appropriate piece of test data for a range of 1 to 80 inclusive

May/June 2024
www.dynamicpapers.com
Marks
3

Example:
Normal 75
Abnormal 101
Extreme 80
6(b)

Test data to test the limits of acceptable data entry
… that will only accept the largest and smallest acceptable values.

© Cambridge University Press & Assessment 2024

Page 10 of 18

2

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
7(a)

Answer

Marks
4

One mark per mark point
MP1
MP2
MP3
MP4

May/June 2024
www.dynamicpapers.com

Assignment of given string to FullText
Correct use of SUBSTRING and assignment of reduced string to own variable
Correct use of UCASE
Output of both strings

Example:
FullText  "IGCSE Computer Science at Cambridge"
PartText  SUBSTRING(FullText, 7, 16)
OUTPUT PartText, UCASE(FullText)
7(b)

One mark per mark point
MP1
MP2
MP3

3

Opening the correct text file for writing
Writing the variable from part (a) to the file
Closing the text file after writing

Example:
OPENFILE "Subjects.txt" FOR WRITE
WRITEFILE "Subjects.txt", PartText
CLOSEFILE "Subjects.txt"

Question
8(a)

Answer
Fields – 6
Records – 11

© Cambridge University Press & Assessment 2024

Marks
2

Page 11 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
8(b)

Answer
MP1
MP2
MP3
MP4

Correct models of planes selected
Correct Years of planes selected
Correct numbers of engines selected with data all matching for each record
Data sorted correctly with no additional fields or punctuation

May/June 2024
www.dynamicpapers.com
Marks
4

Correct output:
314 Clipper 1936 4
C-47 Dakota 1942 2
Nimrod
1966 4
DC-10
1970 3
Concorde
1973 4
8(c)

MP1
MP2
MP3
MP4

Correct additional keywords used – FROM, WHERE
Correct SELECT field – Model with no additional fields
Correct table name - Hangar1
Correct search criteria - Airworthy = Y // Airworthy

Correct code:
SELECT ID, Model
FROM Hangar1
WHERE Airworthy = Y;// Airworthy;

© Cambridge University Press & Assessment 2024

Page 12 of 18

4

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
9

May/June 2024
www.dynamicpapers.com

Answer

15

AO2 (maximum 9 marks)
AO3 (maximum 6 marks)

Data Structures required with names as given in the scenario:
Arrays or lists Teams[], Results[]
Variables
Played
Requirements (techniques):
R1 Input and store number of games played, teams, number of games won, drawn and lost, with validation for input of
numbers (iteration, range check, input, output).
R2 Calculate and store the number of points. Sort the arrays by number of points (calculation, sort, (nested) iteration).
R3 Finding and outputting top team(s) (finding max, counting and output).

© Cambridge University Press & Assessment 2024

Marks

Page 13 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
9

May/June 2024
www.dynamicpapers.com

Answer
Example 15-mark answer in pseudocode
// input number of games
REPEAT
OUTPUT "How many games have been played (Maximum 18)? "
INPUT Played
UNTIL Played <=18
// input of data as a single loop – a loop for the teams and
// another loop for the data is also acceptable.
FOR InLoop  1 TO 10
OUTPUT "Enter the name of the team"
INPUT Teams[InLoop]
// input of games results with validation
REPEAT
OUTPUT "Enter the number of games won, drawn and lost for ", Teams[InLoop]
INPUT Won, Drawn, Lost
IF Won + Drawn + Lost <> Played
THEN
OUTPUT "Your inputs must total ", Played, " please try again"
ENDIF
UNTIL Played = Won + Drawn + Lost
Results[InLoop, 1]  Won
Results[InLoop, 2]  Drawn
Results[InLoop, 3]  Lost
// calculating and storing points
Results[InLoop, 4]  Results[InLoop, 1] * 3 + Results[InLoop, 2]
NEXT InLoop
// sorting section
Flag  TRUE
WHILE Flag DO
Flag  FALSE
FOR Sort  1 TO 9
IF Results[Sort, 4] < Results[Sort + 1, 4]
THEN

© Cambridge University Press & Assessment 2024

Page 14 of 18

Marks

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
9

Answer
// swapping if points not higher then
TempString  Teams[Sort]
Temp1  Results[Sort, 1]
Temp2  Results[Sort, 2]
Temp3  Results[Sort, 3]
Temp4  Results[Sort, 4]
Teams[Sort]  Teams[Sort + 1, 1]
Results[Sort, 1]  Results[Sort + 1,
Results[Sort, 2]  Results[Sort + 1,
Results[Sort, 3]  Results[Sort + 1,
Results[Sort, 4]  Results[Sort + 1,
Teams[Sort + 1]  TempString
Results[Sort + 1, 1]  Temp1
Results[Sort + 1, 2]  Temp2
Results[Sort + 1, 3]  Temp3
Results[Sort + 1, 4]  Temp4
Flag  TRUE
ENDIF
NEXT Sort
ENDWHILE
// checking for tie
Count  1
Finish  FALSE
REPEAT
IF Results[Count, 4] = Results[Count + 1, 4]
THEN
Count  Count + 1
ELSE
Finish  TRUE
ENDIF
UNTIL Finish

© Cambridge University Press & Assessment 2024

Page 15 of 18

May/June 2024
www.dynamicpapers.com
Marks

next element

1]
2]
3]
4]

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
9

Answer
// outputting the results
FOR OutLoop  1 TO Count
OUTPUT "Winning Team(s): ", Teams[OutLoop]
NEXT OutLoop
OUTPUT "Winning Points: ", Results[1, 4]

© Cambridge University Press & Assessment 2024

Page 16 of 18

May/June 2024
www.dynamicpapers.com
Marks

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

May/June 2024
www.dynamicpapers.com

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
0
No creditable response.

13

46

79

At least one programming technique
has been used.
Any use of selection, iteration,
counting, totalling, input and output.

Some programming techniques used
are appropriate to the problem.
More than one technique seen applied
to the scenario, check list of
techniques needed.

The range of programming techniques
used is appropriate to the problem.
All criteria stated for the scenario have
been covered by the use of
appropriate programming techniques,
check list of techniques needed.

Some data has been stored but not
appropriately.
Any use of variables or arrays or
other language dependent data
structures e.g. Python lists.

Some of the data structures chosen
are appropriate and store some of the
data required.
More than one data structure used to
store data required by the scenario.

The data structures chosen are
appropriate and store all the data
required.
The data structures used store all the
data required by the scenario.

34

56

Marking Instructions in italics
AO3: Provide solutions to problems by:
 evaluating computer systems
 making reasoned judgements
 presenting conclusions
0
No creditable response.

12
Program seen without relevant
comments.

Program seen with some relevant
comment(s).

The program has been fully
commented.

Some identifier names used are
appropriate.
Some of the data structures used
have meaningful names.

The majority of identifiers used are
appropriately named.
Most of the data structures used have
meaningful names.

Suitable identifiers with names
meaningful to their purpose have
been used throughout.
All of the data structures used have
meaningful names.

© Cambridge University Press & Assessment 2024

Page 17 of 18

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

May/June 2024
www.dynamicpapers.com

Marking Instructions in italics
AO3: Provide solutions to problems by:
 evaluating computer systems
 making reasoned judgements
 presenting conclusions
0

12

34

56

The solution is illogical.

The solution contains parts that may
be illogical.

The program is in a logical order.

The solution is inaccurate in many
places.
Solution contains few lines of code
with errors that attempt to perform a
task given in the scenario.

The solution contains parts that are
inaccurate.
Solution contains lines of code with
some errors that logically perform
tasks given in the scenario. Ignore
minor syntax errors.

The solution is accurate.
Solution logically performs all the
tasks given in the scenario. Ignore
minor syntax errors.

The solution attempts at least one of
the requirements.
Solution contains lines of code that
attempt at least one task given in the
scenario.

The solution attempts to meet most of
the requirements.
Solution contains lines of code that
attempt most tasks given in the
scenario.

The solution meets all the
requirements given in the question.
Solution performs all the tasks given
in the scenario.

© Cambridge University Press & Assessment 2024

Page 18 of 18

Advertisement