Computer Science (9608) · Oct/Nov 2020 · Mark scheme 43

Cambridge Computer Science (9608) mark scheme for paper 43, Oct/Nov 2020 — 9608/43/O/N/20, file 9608_w20_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

October/November 2020

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 October/November 2020 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 15 printed pages.
© UCLES 2020

[Turn over

9608/43

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

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

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

October/November 2020
www.dynamicpapers.com

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

Answer

1

Marks
5

A
B
C
D
E
F
G
H
I
J
K
Week
number
•
•
•
•
•

© UCLES 2020

1

2

3

4

5

6

7

8

9

A(1) and B(3) following A
C(6) following B and D(4) following B
E(2) following D, F(2) following E, G(1) following F
H(2) following G, I(2) following G, J(3) following G
K(4) following H

Page 4 of 15

10

11

12

13

14

15

16

17

18

19

20

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

Answer

2(a)

Statement

Marks
Integration

Alpha

Beta

()

()

4

Software is tested by the client before it is signed-off
Software is tested by combining modules that have previously been
tested to check they work as expected.

Software is tested using normal, abnormal and boundary data.

Software is tested by releasing it to selected customers, who test it in
normal circumstances

© UCLES 2020

Acceptance

Software is tested in-house by dedicated testers

2(b)

October/November 2020
www.dynamicpapers.com

One from:
• dry run
• walkthrough
• white-box
• black-box

1

Page 5 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
3(a)

Answer
•
•

Correct header and close (where applicable) with no parameters …
…Correct values assigned to correct identifiers

PYTHON
def __init__(self):
self.__PlayerID = "PL12a3"
self.__Name = ""
self.__Score = 0
PASCAL
Constructor PuzzlePlayer.Create();
begin
PlayerID := 'PL12a3';
Name: = '';
Score := 0;
end;
VB
Public Sub New()
PlayerID = "PL12a3"
Name = ""
Score = 0
End Sub

© UCLES 2020

Page 6 of 15

October/November 2020
www.dynamicpapers.com
Marks
2

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
3(b)

Answer
•
•

Correct function header and close (where applicable) no parameter (if returns value must be string)
Returns correct value PlayerID

PYTHON
def GetPlayerID(self):
return(self.__PlayerID)
PASCAL
Function GetPlayerID() : String;
Begin
GetPlayerID := PlayerID;
End;
VB
public function GetPlayerID()
return(PlayerID)
End Function

© UCLES 2020

October/November 2020
www.dynamicpapers.com

Page 7 of 15

Marks
2

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
3(c)

October/November 2020
www.dynamicpapers.com

Answer
•
•
•
•
•

Function header (and close), value passed as parameter (returning Boolean/String if present)
Checks parameter is 6 characters in length
AND checks the first two characters in parameter are "PL"
…Returns true if parameter is valid and stores in PlayerID
…Returns false if parameter is not valid (and stores in PlayerID or not)

Marks
5

FUNCTION SetPlayerID(NewPlayerID) RETURNS BOOLEAN
DECLARE Valid : BOOLEAN
Valid ← TRUE
IF Length(NewPlayerID) = 6 AND Substring(NewPlayerID,0,2) = "PL"
THEN
PlayerID ← NewPlayerID
ELSE
Valid ← FALSE
ENDIF
RETURN Valid
ENDFUNCTION
3(d)(i)

•
•

3(d)(ii)

e.g.
• Inheritance
• A child class can use attributes/methods from the parent class
•
•

3(d)(iii)

© UCLES 2020

A class contains objects/instances of another class
Quiz class has objects of type Question class // The objects/items in the array QuizQs have the
attributes/methods of the class Question // The array QuizQs is of data type class Question

2

2

Polymorphism
A child class can overwrite the methods of the parent class

• Correct identifier, 100 elements, type Quiz and clearly array (i.e. brackets)
DECLARE QuizBank : ARRAY[0:99] OF Quiz

Page 8 of 15

1

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
3(d)(iv)

Answer
•
•

Instance of object and assignment to first element of array (0 or 1)
Correct parameters (in any order)

October/November 2020
www.dynamicpapers.com
Marks
2

PYTHON
QuizBank[0] = Quiz("Famous people", "Low", 10)
PASCAL
QuizBank[0] := Quiz.Create('Famous people', 'Low', 10);
VB
QuizBank[0] = New Quiz ("Famous people", "Low", 10)
Question

Answer

Marks

4(a)

•
•
•
•

type(camembert)
soft(camembert)
strong_smell(camembert)
origin(camembert, france)

4

4(b)

•
•
•
•

type(X)
AND country(Y)
AND NOT
soft(X)

4

IF type (X) AND country (Y) AND NOT soft(X)

© UCLES 2020

Page 9 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

October/November 2020
www.dynamicpapers.com

Answer

Marks

5(a)

Four from:
• Uses a sorted and unsorted list
• Takes first value and makes it sorted list // compare second item to first item
• Find location of next value in the sorted list
• …description of suitable method (e.g. switching values, taking value out, comparing with sorted values)
• Insert item in correct position in sorted list
• Repeat until all items are in the sorted list (dependent on suitable method)

4

5(b)

Counter ← NumberOfItems – 2
REPEAT
DataSwapped ← FALSE
FOR CurrentValue ← 0 TO Counter // NumberOfItems – 2
IF DataList[CurrentValue] > DataList[CurrentValue + 1]
THEN
ValueTemp ← DataList[CurrentValue]
DataList[CurrentValue] ← DataList[CurrentValue + 1]
DataList[CurrentValue + 1] ← ValueTemp
DataSwapped ← TRUE
ENDIF
ENDFOR
UNTIL DataSwapped = FALSE

5

Question

Answer

6(a)

•
•

6(b)

It indicates the end of the list // it doesn’t point anywhere/to any data/to another node

© UCLES 2020

Marks
2

A–B–E
E–C–D with D null pointer

Page 10 of 15

1

9608/43
Question
6(c)(i)

© UCLES 2020

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

October/November 2020
www.dynamicpapers.com

Answer
FUNCTION FindValue(Value : INTEGER) RETURNS INTEGER
DECLARE CurrentPointer : INTEGER
CurrentPointer ← StartPointer
WHILE CurrentPointer <> NULL AND LinkedList[CurrentPointer].Data <> Value
CurrentPointer ← LinkedList[CurrentPointer].Pointer
ENDWHILE
IF LinkedList[CurrentPointer].Data = Value
THEN
RETURN CurrentPointer
ELSE
RETURN −1
ENDIF
ENDFUNCTION

Page 11 of 15

Marks
6

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
6(c)(ii)

October/November 2020
www.dynamicpapers.com

Answer
One mark per bullet point to max 7
•
•
•
•
•
•
•
•
•
•
•

7

Function header, taking parameter (and returning Boolean)
Assign a new pointer to StartPointer
Iterate/recursive calls through nodes correctly updating current pointer
Checking for empty list and returning FALSE
Checking if end of list …
… check data in last node
Checking if data found…
… set pointer of found node to NULL (return to free chain)
… if found update previous node pointer to NULL
… return TRUE
If end of list and not found then return FALSE

FUNCTION DeleteNode(NodeData : STRING) RETURNS BOOLEAN
IF StartPointer = NULL
THEN
RETURN FALSE
ELSE
CurrentPointer ← StartPointer
IF LinkedList[CurrentPointer].Data = NodeData
THEN
StartPointer ← LinkedList[CurrentPointer].Pointer
RETURN TRUE
ELSE
PreviousPointer ← CurrentPointer
WHILE CurrentPointer <> NULL AND
LinkedList[CurrentPointer].Data <> NodeData
PreviousPointer ← CurrentPointer
CurrentPointer ← LinkedList[CurrentPointer].Pointer
ENDWHILE

© UCLES 2020

Marks

Page 12 of 15

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

Answer

6(c)(ii)

IF CurrentPointer = NULL
THEN
IF LinkedList[CurrentPointer].Data = NodeData
THEN
LinkedList[PreviousPointer].Pointer ← NULL
RETURN TRUE
ELSE
RETURN FALSE
ENDIF
ELSE
IF LinkedList[CurrentPointer].Data = NodeData
THEN
LinkedList[PreviousPointer].Pointer ←
LinkedList[CurrentPointer].Pointer
LinkedList[CurrentPointer].Pointer ← NULL
RETURN TRUE
ENDIF
ENDIF
ENDIF
ENDIF
ENDFUNCTION

© UCLES 2020

October/November 2020
www.dynamicpapers.com

Page 13 of 15

Marks

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question
7

Answer
Label

LOOP:

Op Code
LDR
LDM
STO
IN
CMP

Operand
#0
#0
LENGTH

EXCLAMATIO
N
JPE OUTPUT
STX USERNAME

OUTPUT:

INC
LDD
INC
STO
CMP
JPN
LDR
LDM
STO
LDX
OUT
INC
LDD
INC
STO
CMP
JPN
END

IX
LENGTH
ACC
LENGTH
MAX
LOOP
#0
#0
COUNT
USERNAME
IX
COUNT
ACC
COUNT
LENGTH
OUTPUT

EXCLAMATION:

MAX:
COUNT:
USERNAME:

Marks
8

Comment
// initialise LENGTH to 0
// is character = EXCLAMATION
('!')?
// if true, jump to OUTPUT
// store character in USERNAME +
contents of IX
// increment Index Register

[1]

// increment LENGTH

[1]

// is LENGTH = MAX ?
// if FALSE, jump to LOOP

[1]
[1]

// initialise COUNT to 0

[1]
[1]

[1]

// increment COUNT
// is COUNT = LENGTH ?
// end program

LENGTH:

© UCLES 2020

October/November 2020
www.dynamicpapers.com

B0010001
8

Page 14 of 15

[1]

9608/43

Cambridge International AS & A Level – Mark Scheme
PUBLISHED

Question

Answer

8(a)

•
•

8(b)

1 mark each:
•
•
•
•
•

© UCLES 2020

Marks
2

8…
…it calls itself

5

Final return value = 5
Output column
Return value column
Value 1 and Value 2 columns
Temp column
Value1

Value2

Temp

EndValue

OUTPUT

Return Value

1

1

1

12

1

5

2

4

2

8(c)

October/November 2020
www.dynamicpapers.com

3

2

2

3

3

5

3

3

5

2

8

5

5

8

1

13

8

13

0

To output/find a value that is the addition of the two previous values // (output) Fibonacci sequence

Page 15 of 15

1

Advertisement