Question 11(a) 2017 · May-June · Paper 21 · 12 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 11
Part (a)
Question 11
PRINT ′The average of the numbers you entered is ′, Average
There are four errors in this code.
State the line number for each error and write the correct code for that line.
Error 1 Line number .............................
Correct code .....................................................................................................................................
Error 2 Line number .............................
Correct code .....................................................................................................................................
Error 3 Line number .............................
Correct code .....................................................................................................................................
Error 4 Line number .............................
Correct code .....................................................................................................................................
Question 10
3 A satellite navigation system works using destination details entered by the user, either a new destination or chosen from previously saved destinations. The satellite navigation system will then output directions to the destination in the form of either a visual map or a list of directions.
This structure diagram shows some of its sub-systems.
Complete the diagram by filling in the empty boxes.
Satellite navigation system
Input destination
Map List
4 For each of the four statements in the table, place a tick in the correct column to show whether it is an example of validation or verification.
Statements Validation Verification To automatically check the accuracy of a bar code To check if the data input is sensible To check if the data input matches the data that has been supplied To automatically check that all required data fields have been completed
Question 11
Question 5
Part (a)
Describe the purpose of each statement in this algorithm.
FOR I 1 TO 300 INPUT Name[I] NEXT I
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
Why this question appears here
85% assigned-topic match · Programming › Programming concepts
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_s17_qp_21.pdf
