Computer Science (2210) · Oct/Nov 2017 · Mark scheme 23
Cambridge Computer Science (2210) mark scheme for paper 23, Oct/Nov 2017 — 2210/23/O/N/17, file 2210_w17_ms_23.pdf.
Text of this paper
Cambridge Assessment International Education
Cambridge Ordinary Level
COMPUTER SCIENCE
2210/23
Paper 2
October/November 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 International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes for the October/November 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 document consists of 7 printed pages.
© UCLES 2017
[Turn over
2210/23
Cambridge O Level – Mark Scheme
PUBLISHED
Question
1(a)(i)
October/November
2017
Answer
1 mark per bullet:
Marks
3
•
•
At least one array declaration
At least one array has an appropriate name
•
All arrays with appropriate names
Many correct answers, they must be meaningful. These are examples only.
Array_2Seater[ ]
Array_4Seater[ ]
Array_Historic[ ]
1(a)(ii)
1 mark per bullet:
•
•
Name of variable
Purpose of variable
•
•
Name of constant
Purpose of constant
4
Many correct answers, they must be meaningful. These are examples only.
© UCLES 2017
Variable
NumFlights
to store the number of flights in a day
Constant
FlightCost2Seat30
to store the cost of a 30 minute flight in a 2 seater plane
Page 2 of 7
2210/23
Cambridge O Level – Mark Scheme
PUBLISHED
Question
1(b)
October/November
2017
Answer
Any five from:
•
•
•
•
•
•
•
•
Marks
5
Prompt for plane
Input plane
Prompt for another input length of flight along with the input.
Attempt at calculation of maximum number of flights in a day
Using correct values for maximum number of flights (from calculation or
otherwise)
Calculation/determination of cost of a single flight for selected plane and
duration
Calculation of income that can be generated for one combination of
plane and flight
Output of total possible income for one combination of plane and flight
with message(s)
Algorithm example:
OUTPUT "Please Enter Type of Plane"
OUTPUT "1: 2 Seater"
OUTPUT "2: 4 Seater"
OUTPUT "3: Historic"
INPUT PlaneType
OUTPUT "Please Enter Length of Flight"
INPUT FlightLength
CASE FlightLength of
30: OUTPUT "Maximum number of flights is 10"
60: OUTPUT "Maximum number of flights is 6"
OTHERWISE OUTPUT "Invalid length of flight"
ENDCASE
CASE PlaneType of
1: Price30 Å 100; Price60 Å
2: Price30 Å 120; Price60 Å
3: Price30 Å 120; Price60 Å
OTHERWISE OUTPUT "Invalid type
ENDCASE
150
200
500
of plane"
CASE FlightLength of
30: OUTPUT "Total Possible Income is ", Price30 * 10
60: OUTPUT "Total Possible Income is ", Price60 * 6
ENDCASE
1(c)
1 mark for each correct point related to the inputs for Task 1
•
•
•
•
•
•
•
•
© UCLES 2017
Description of how the program would validate the input
Description/identification of input(s)
Type of validation check
Checking inputs against stored data/maxima/correct data
Dry-running the program
Use of test data
Identification of types of test data
Example(s) of test data
Page 3 of 7
4
2210/23
Cambridge O Level – Mark Scheme
PUBLISHED
Question
1(d)
Answer
Any four from:
•
•
•
•
•
•
Marks
4
Input timeslot
Check 3 types of plane
Methodology for checking time slot
Identify any planes available
Output plane(s) available
Output if no planes available
Question
2
October/November
2017
Answer
1 mark for each error identified plus suggested correction (the corrected
lines must be written in full)
Marks
4
Line 4 correct line WHILE Number <= 99 OR Number > 1000
Line 7 correct line Num[Index] = Number
Line 9 correct line NEXT (Index)
Line 10 correct line PRINT Count
Question
3(a)
3(b)
Answer
1 mark per bullet:
2
•
Validation checks whether data to be entered is possible/sensible //
computer check
•
Verification checks that data entered is the data that was intended to be
entered // can be a human check // matches the source
1 mark for each valid point
2
Either
• Double Entry // suitable practical example
• the data will be entered twice
• compared by the computer or by a human
• if a discrepancy is found, the data entry operator is asked to re-enter
the data
Or
•
•
•
•
© UCLES 2017
Marks
Visual Verification // suitable practical example
the data will be compared to the source ‘document’
compared by a human
if a discrepancy is found, the data is re-entered
Page 4 of 7
2210/23
Cambridge O Level – Mark Scheme
PUBLISHED
Question
3(c)
Answer
•
2
Library routine is a list of instructions // block of code // subroutine
« that is used often «
« which is given a name
« and which can be called from other programs
Library routines make writing programs easier and faster as the code is
already written
Library routines make program testing easier as the code has already
been tested and debugged
Question
Answer
Marks
1 mark for each correct line
4
Pseudocode description
Pseudocode statement
A loop that will iterate at
least once.
FOR…TO…NEXT
IF…THEN…ELSE…ENDIF
A conditional statement to
deal with many possible
outcomes.
WHILE…DO…ENDWHILE
A loop that will iterate a set
number of times.
CASE…OF…OTHERWISE…ENDCASE
REPEAT…UNTIL
A conditional statement
with different outcomes for
true and false.
4(b)
Marks
1 mark for explanation and 1 mark for an expansion
•
•
•
•
•
4(a)
October/November
2017
1 mark per bullet:
•
•
•
3
Appropriate loop controls
Read from array
Print from array (the last two points can be in one statement)
Note reading and printing MUST be within the same loop
Example algorithm:
Count Å 0
WHILE Count < 50 DO
OUTPUT Name[Count]
Count Å Count + 1
ENDWHILE
© UCLES 2017
Page 5 of 7
2210/23
Cambridge O Level – Mark Scheme
PUBLISHED
Question
October/November
2017
Answer
5(a)
Flag
Count
Name[1] Name[2]
Marks
Name[3] Name[4] Temp
Jamal
Amir
Eve
Tara
0
1
Amir
Jamal
Eve
Tara
Jamal
1
2
Amir
Jamal
Eve
Tara
Jamal
1
3
Amir
Eve
Jamal
Tara
Jamal
1
4
Amir
Eve
Jamal
Tara
Jamal
0
1
Amir
Eve
Jamal
Tara
Jamal
0
2
Amir
Eve
Jamal
Tara
Jamal
0
3
Amir
Eve
Jamal
Tara
Jamal
0
4
Amir
Eve
Jamal
Tara
Jamal
5
(1 Mark) (1 Mark) (--------1 Mark--------) (--------1 Mark--------) (1 Mark)
5(b)
1 mark per bullet:
•
•
2
Sorting the names
Ascending order / A to Z / lowest to highest / Alphabetic order
Question
6(a)
© UCLES 2017
Answer
1 mark for any sensible appropriate field name
1 mark for data type, purpose + example data
Example 1:
Field Name:
Data Type:
Purpose:
Example Data:
SPECIESID
Alphanumeric
Primary key
SP06583
Example 2:
Field name:
Data Type:
Purpose:
Example Data:
NUMBER
Integer
To record how many of that species there are at the park
30
Page 6 of 7
Marks
2
2210/23
Cambridge O Level – Mark Scheme
PUBLISHED
Question
October/November
2017
Answer
Marks
6(b)
4
Field: Species
Table: LIVESTOCK
Classification
Diet
Legs
LIVESTOCK
LIVESTOCK
LIVESTOCK
Sort: Ascending/
Descending
Show:
;
Criteria:
“Mammal”
“Herbivore”
(1 Mark)
(1 Mark)
4
or:
(1 Mark)
1 mark per completely correct column.
© UCLES 2017
Page 7 of 7
(1 Mark)