Question 7(a) 2015 · October-November · Paper 11 · 3 marks
Reveal official mark-scheme answer

Official answer for Question 7
Part (a)
Part (a)
Question 3
Question 1
Question 5
Question 6
Question 2
Question 4
Question 11
Show text version of question
Question 7
Part (a)
At each one kilometre interval:
- the speed of the train is captured
- the speed is checked against a stored value for that section of track
- if the train is travelling too quickly, brakes are applied
- if the train is travelling too slowly, an accelerator is applied
The three variables used by the computer program are:
Identifier Description SpeedCheck Input speed of train MaxSpeed An array of stored critical values Distance Distance travelled from start
The flowchart opposite, shows the initial design of the computer-control program.
Six of the statements are missing from the flowchart.
Complete the flowchart, using only statement numbers.
Statement number Statement
1 Is SpeedCheck > MaxSpeed[Distance]?
2 Distance Distance + 1
3 Signal is sent to accelerate train
4 Is Distance = 300?
5 Signal is sent to brake train
6 Is SpeedCheck = MaxSpeed[Distance]?
Question 11
START
'LVWDQFH
5($' 6SHHG&KHFN
,V6SHHG&KHFN Yes 0D[6SHHG >'LVWDQFH@?
No
Yes
No
No
Yes
No
Yes
END
Question 12
Why this question appears here
71% assigned-topic match · Programming › Constructs
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 9691_w15_qp_11.pdf
