Question 9(b) 2015 · October-November · Paper 23 · 21 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 9
Part (b)
Question 9
PRINT Num
There are four errors in this code.
Locate these errors and suggest code corrections to remove each error.
1 .......................................................................................................................................................
..........................................................................................................................................................
2 .......................................................................................................................................................
..........................................................................................................................................................
3 .......................................................................................................................................................
..........................................................................................................................................................
4 .......................................................................................................................................................
......................................................................................................................................................[4]
Question 7
Question 3 begins on page 8.
Question 8
Part (b)
State the purpose of the pseudocode in part (a).
...................................................................................................................................................
...............................................................................................................................................[2]
Question 10
4 A routine checks the age and height of children who are allowed to enter a play area. The children must be less than 5 years of age and under 1 metre in height.
Part (a)
The first set of test data used is age 3 and height 0.82 metres.
State what type of test data this is.
...................................................................................................................................................
Give a reason for using this test data.
...................................................................................................................................................
...............................................................................................................................................[2]
Part (b)
Provide two additional sets of test data. For each, give
- the type of each set of test data
- the reason why it is used
Each type of test data and reason for use must be different.
Set 1 .........................................................................................................................................
Type ..........................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Set 2 .........................................................................................................................................
Type ..........................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[6]
Question 11
5 A motor boat hire company decides to set up a database to keep information about boats that are available for hire. The database table, BOAT, will contain the following fields:
Boat Name; Model; Engine Power (in hp); Number of Seats; Life Raft (whether there is a life raft kept on the boat); Day Price (price for a day’s hire).
Part (a)
Give the data type you would choose for each field.
Boat Name ................................................................................................................................
Model ........................................................................................................................................
Engine Power ............................................................................................................................
Number of Seats .......................................................................................................................
Life Raft ....................................................................................................................................
Day Price ..............................................................................................................................[3]
Part (b)
State a validation check that you can perform on each of these fields. Each validation check
must be different.
Boat Name ................................................................................................................................
Model ........................................................................................................................................
Number of Seats .......................................................................................................................
Day Price ..............................................................................................................................[4]
Why this question appears here
98% assigned-topic match · Algorithm design and problem-solving
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 2210_w15_qp_23.pdf
