Computer Science (9608) · May/June 2020 · Mark scheme 43

Cambridge Computer Science (9608) mark scheme for paper 43, May/June 2020 — 9608/43/M/J/20, file 9608_s20_ms_43.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge International AS & A Level
COMPUTER SCIENCE

9608/43

Paper 4 Written Paper

May/June 2020

MARK SCHEME
Maximum Mark: 60

Published

Students did not sit exam papers in the June 2020 series due to the Covid-19 global pandemic.
This mark scheme is published to support teachers and students and should be read together with the
question paper. It shows the requirements of the exam. The answer column of the mark scheme shows the
proposed basis on which Examiners would award marks for this exam. Where appropriate, this column also
provides the most likely acceptable alternative responses expected from students. Examiners usually review
the mark scheme after they have seen student responses and update the mark scheme if appropriate. In the
June series, Examiners were unable to consider the acceptability of alternative responses, as there were no
student responses to consider.
Mark schemes should usually be read together with the Principal Examiner Report for Teachers. However,
because students did not sit exam papers, there is no Principal Examiner Report for Teachers for the June
2020 series.
Cambridge International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes for the June 2020 series for most Cambridge
IGCSE™ and Cambridge International A & AS Level components, and some Cambridge O Level
components.

This document consists of 15 printed pages.
© UCLES 2020

[Turn over

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Generic Marking Principles

May/June 2020
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 2020

Page 2 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

May/June 2020
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 2020

Page 3 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

Answer

May/June 2020
www.dynamicpapers.com
Marks

1(a)

It is an unplanned event // an event not wanted

1

1(b)

1 mark per example to max 3
e.g.
•
Division by zero
•
Invalid array index
•
File does not exist
•
Run-time error
•
Invalid input
•
Invalid argument/value
•
Stack overflow
•
Memory leakage
•
Hardware failure/error

3

1(c)

1 mark per bullet point to max 2
•
The program will not crash // more robust // program will continue
•
Result does not cause further errors/problems later
•
Appropriate error messages/result
•
Exceptional conditions are identified
•
Improve readability

2

© UCLES 2020

Page 4 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
2(a)

Answer
1 mark for the first 3 rows
1 mark for the last 2 rows
Feature

May/June 2020
www.dynamicpapers.com
Marks
2

Must be included

Incrementation
General case

Base case

Selection case
It calls itself
2(b)

1 mark for each of the spaces filled in

5

PROCEDURE Count(BYVALUE Number : INTEGER)
IF MOD(Number, 2) <> 0
THEN
Number ← Number - 1
ENDIF
OUTPUT Number
IF Number > 0
THEN
CALL Count(Number - 1)
ENDIF
ENDPROCEDURE

© UCLES 2020

Page 5 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
2(c)

May/June 2020
www.dynamicpapers.com

Answer
1 mark per bullet point
• Recursive call
• ..with correct parameters
• …in correct working place(s)
• Removal of loop
• Remainder of program in correct place

Marks
5

PROCEDURE MealsCount(BYREF MealOption1 : INTEGER, MealOption2 : INTEGER)
DECLARE MealOption : INTEGER
INPUT MealOption
IF MealOption = 1
THEN
MealOption1 ← MealOption1 + 1
CALL MealsCount(MealOption1, MealOption2)
ELSE
IF MealOption = 2
THEN
MealOption2 ← MealOption2 + 1
CALL MealsCount(MealOption1, MealOption2)
ELSE
OUTPUT MealOption1, " ", MealOption2
ENDIF
ENDIF
ENDPROCEDURE
Question
3(a)

Answer
1 mark for each statement
•
•
•
•

© UCLES 2020

Marks
4

person(elle).
sport(rugby).
plays(elle, rugby).
will_not_play(elle, hockey).

Page 6 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

Answer

May/June 2020
www.dynamicpapers.com
Marks

3(b)

johann, jessica

1

3(c)

1 mark per bullet point

5

•
•
•
•
•

person(Y)
AND // ,
sport(X)
AND NOT // , NOT
will_not_play(Y, X)

mightplay(Y, X)
IF person (Y) AND sport (X) AND NOT(will_not_play(Y, X))
Question
4(a)

Answer
1 mark per bullet point to max 2
•
•
•
•

4(b)

© UCLES 2020

2

Can use the properties from the parent/super class (without redeclaring them)
Can use the methods from the parent/super class (without redeclaring them)
Can extend the properties from the parent/super class
Can extend the methods from the parent/super class

1 mark per feature to max 2
•
•
•
•
•

Marks

2

Polymorphism
Encapsulation
Containment
Aggregation
Composition

Page 7 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
5(a)

Answer
1 mark per bullet point
•
•
•

Marks
3

Method header and close (where applicable) …
… with correct parameters (LessonType, Instructor)
Initialised LessonType and Instructor to parameter values

PYTHON
def __init__(self, LType, LInstructor) :
self.__ LessonType = LType
self.__Instructor = LInstructor
PASCAL
Constructor Lesson.Create(LType, LInstructor);
begin
LessonType:= LType;
Instructor: = LInstructor;
end;
VB.net
Public Sub New(ByVal LType As String, ByVal LInstructor As String)
LessonType = LType
Instructor = LInstructor
End Sub

© UCLES 2020

May/June 2020
www.dynamicpapers.com

Page 8 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
5(b)

Answer
1 mark per bullet point
•
•

Marks
2

function header and close (where applicable)
returns Fee

PYTHON
def GetLessonType(self) :
return self.__LessonType
VB.net
Function GetLessonType () As Single
Return LessonType
End Function

© UCLES 2020

May/June 2020
www.dynamicpapers.com

Page 9 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
5(c)

Answer
1 mark per bullet point
•
•
•
•
•

Marks
5

Function header and close (where applicable)
Takes a parameter value
Check parameter value is valid …
… returns the correct fee
Returns -1 if value not valid

PYTHON
def GetFee(self, Level) :
if Level == 'B' :
return 45
elif Level == 'I' :
return 50
elif Level == 'A' :
return 55
else :
return -1
VB.NET
Public Sub GetFee(PLevel)
if PLevel = "B" Then
return 45
elseif PLevel = "I" Then
return 50
elseif PLevel = "A" Then
return 55
else
return -1
endif
End Sub

© UCLES 2020

May/June 2020
www.dynamicpapers.com

Page 10 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
5(d)

Answer
1 mark per bullet point
•
•

May/June 2020
www.dynamicpapers.com
Marks
2

Array declaration with identifier LessonArray and size 9
Correct data type used

DECLARE LessonArray : ARRAY[0:8] OF Lesson
5(e)

1 mark per bullet point
•
•
•

3

Object is created
Correct parameters passed
Stored in correct index of LessonArray

PYTHON
LessonArray[2] = Lesson("Improve Your Serve", "David")
VB.net
LessonArray[2] = New Lesson("Improve Your Serve", "David")

© UCLES 2020

Page 11 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
6(a)

Answer
1 mark per bullet point to max 4
•
•
•
•

Marks
4

Procedure header and end
Loop 6000 times
Access the UserID and PINNumber for each element in CustomerDetails
Correct initialisation of UserID to "" and PINNumber to 0

PROCEDURE InitialiseHashTable()
FOR x ← 0 TO 5999
CustomerDetails[x].UserID ← ""
CustomerDetails[x].PINNumber ← 0
ENDFOR
ENDPROCEDURE

© UCLES 2020

May/June 2020
www.dynamicpapers.com

Page 12 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
6(b)

Answer
1 mark for each completed missing statement

Marks
7

FUNCTION InsertRecord(NewRecord) RETURNS INTEGER
DECLARE Count : INTEGER
DECLARE Index : INTEGER
Count ← 0
Index ← Hash(NewRecord.UserID)
WHILE (CustomerDetails[Index].UserID <> "") AND (Count <= 5999)
Index ← Index + 1
Count ← Count + 1
IF Index > 5999
THEN
Index ← 0
ENDIF
ENDWHILE
IF Count > 5999
THEN
RETURN -1
ELSE
CustomerDetails[Index] ← NewRecord
RETURN Index
ENDIF
ENDFUNCTION

© UCLES 2020

May/June 2020
www.dynamicpapers.com

Page 13 of 15

9608/43
Question
7

May/June 2020
www.dynamicpapers.com

Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Answer

Marks

1 mark per bullet point

7

• Name, Address and Telephone Number beneath Customer details
• Order Details below booking form
• …with appropriate iteration of entering Order Details
• Shirt ID and Colour beneath Order Details
• Cost beneath Order Details
• …with Small, Medium and Large below it
• …with selection
e.g.
Order Form

Customer Details

Name

7(b)(i)

© UCLES 2020

Address

Telephone
number

Total Cost

Order Details *

Shirt
ID

Serial

Colour

Cost

Small °

Medium°

Large

°

1

Page 14 of 15

9608/43
Question
7(b)(ii)

Answer

Marks

1 mark per bullet point to max 2
•
•

7(c)

May/June 2020
www.dynamicpapers.com

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

2

Sequential
Random

1 mark per completed statement

3

PROCEDURE UpdateTelephone(BYREF ThisCustomer : Customer,
BYVALUE NewTelephoneNumber : STRING)
ThisCustomer.TelephoneNumber ← NewTelephoneNumber
ENDPROCEDURE
1 mark per column pair

Actions

Conditions

7(d)

© UCLES 2020

4

Order over $50

Y

Y

Y

Y

N

N

N

N

Monday

Y

Y

N

N

Y

Y

N

N

Loyalty card

Y

N

Y

N

Y

N

Y

N

Additional 5% discount

Y

N

Y

N

Y

N

Y

N

10% discount

Y

Y

Y

Y

N

N

N

N

Free gift

Y

Y

N

N

N

N

N

N

Free delivery

Y

N

Y

N

N

N

N

N

Page 15 of 15

Advertisement