Computer Science (0478) · Feb/March 2017 · Mark scheme 22

Cambridge Computer Science (0478) mark scheme for paper 22, Feb/March 2017 — 0478/22/F/M/17, file 0478_m17_ms_22.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge International Examinations
Cambridge International General Certificate of Secondary Education

COMPUTER SCIENCE

0478/22

Paper 2

March 2017

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 will not enter into discussions about these mark schemes.
Cambridge is publishing the mark schemes for the March 2017 series for most Cambridge IGCSE®,
Cambridge International A and AS Level components and some Cambridge O Level components.

® IGCSE is a registered trademark.
This syllabus is approved for use in England, Wales and Northern Ireland as a Cambridge International Level 1/Level 2 Certificate.

This document consists of 5 printed pages.
© UCLES 2017

[Turn over

Cambridge IGCSE – Mark Scheme
March 2017
www.dynamicpapers.com
PUBLISHED

0478/22

Question

Answer

1(a)(i)

Many correct answers, the identifier must be meaningful and appropriate size if
present. These are examples only
ReactionTime [1:650], ReactionTime [0:649],
ReactionTime [650], ReactionTime[649], ReactionTime[ ]

1

1(a)(ii)

Many correct answers, the identifier must be the same as part 1(a)(i) including
appropriate size if present. These are examples only
ReactionTime [1:50], ReactionTime [0:49], ReactionTime [50],
ReactionTime[49], ReactionTime[ ]

1

1(a)(iii)

Any two from:
– can store multiple reaction times under a single identifier
– reduces the number variables
– arrays have an index which identifies each stored element
– can use iteration to loop through an array
– allows for more efficient programming
– programs are easier to debug

2

Any three from:

3

1(b)

Marks

– an effective loop to accept 650 records
– prompt for all three inputs
– within the loop reads all three INPUT values
– storing input values in appropriate arrays
Sample Answer.
FOR Counter ← 1 TO 650
OUTPUT (ꞌInput House, Age and Reaction Timeꞌ)
INPUT HouseArray [Counter], AgeArray [Counter],
ReactionTimeArray[Counter]
NEXT
1(c)

1(d)

© UCLES 2017

1 mark for correct type of test data (max 3)
«« 1 mark for appropriate example (max 3)
Normal / Valid

12 / 13 / 14 / 15 / 16

Erroneous / Abnormal / Invalid

13.5 / Twelve / 9

Boundary (accepted)
Boundary (rejected)

12 or 16
11 or 17

Extreme

12 or 16

Any five from following explanations:
– user input for House and Age
– loop through the arrays
– use selection statements to identity the elements that meet both criteria
– maintain counter of elements (that met criteria of House and Age input)
– maintain a sum of reaction times (that match criteria of House and Age input)
– calculate the average from element counter and sum of reaction times
– create appropriate output message
– output message and average outside of loop

Page 2 of 5

6

5

0478/22

Cambridge IGCSE – Mark Scheme
March 2017
www.dynamicpapers.com
PUBLISHED

Question

Answer

1(e)

Any two from following explanations:
– variable used to hold fastest time will have to initialised to a high value /
variable used to hold fastest time will be given first record value
– store array value in variable if reaction time less than current value in variable
– store array value of age with the same index in a variable
– Output age and fastest reaction time

© UCLES 2017

Page 3 of 5

Marks
2

Cambridge IGCSE – Mark Scheme
March 2017
www.dynamicpapers.com
PUBLISHED

0478/22

Question

Answer

Marks

Section B
2

1 mark for each error identified with effective corrective action
01 Num18 = 0
02 INPUT Age
03 WHILE Age >= 0 DO
04
IF Age >= 18 THEN
05
Num18 = Num18 + Age
06
END IF
07 END WHILE
08 PRINT Num18 - Age

4

Error – Line 04 or IF Age >= 18 and Correction – IF Age >18
Error – Line 05 or Num18 =Num18 + Age and Correction – Num18 = Num18
+ 1
Error – Line 08 or PRINT Num18 – Age and Correction – PRINT Num18
Error – INPUT Age missing inside loop and Correction – Include INPUT Age
after test and before exiting loop
3

1 mark for each correctly completed element of the grid
Variable

4

Data Type

Appropriate Validation Check

EmployeeID

String

Length Check / Presence Check /
Format Check / Type check

Manager

Boolean

Type Check / Presence Check

AnnualHoliday

Integer

Type Check / Range Check / Presence
Check

PayGrade

Char

Presence Check / Length Check / Type
Check

1 mark for each correct column

4

A

B

C

4

4

4

8

3

12

2

16

1

3

3

6

2

9

1

3

–1

© UCLES 2017

8

Output

16

9
Exit

Page 4 of 5

Cambridge IGCSE – Mark Scheme
March 2017
www.dynamicpapers.com
PUBLISHED

0478/22

Question
5(a)

Answer

Marks

– initialising counter outside the loop
– updating counter inside loop
– suitable exit value at start of loop
– correct use of WHILE … DO … ENDWHILE

4

Example:
INPUT Num
Counter ← 1
WHILE Counter <= 12 DO
Num ← Num * Counter
A [Counter] ← Num
Counter ← Counter + 1
ENDWHILE
5(b)

– WHILE has criteria check at start / pre-test
– may never run
– REPEAT UNTIL has criteria check at end / post-test
– will always run at least once

4

6(a)

Alan Swales

2

•
•
6(b)

Chantel Law

Correct data
Correct order

Field: Device ID
Table: DEVICE

Device Type

Purchase Date

Purchase
Price ($)

DEVICE

DEVICE

DEVICE

;

†

†

Like ‘Desktop’

<#31/12/2016#

Sort:
Show:
Criteria:

;

or:
1 mark for each correct column

© UCLES 2017

<1000

Page 5 of 5

4

Advertisement