Past-paper question · 2015 October-November · Paper 13 · Q7(a)

Question 7(a) 2015 · October-November · Paper 13 · 3 marks

Original past-paper question for 7(A)
Original past-paper question for 7(A)
Reveal official mark-scheme answer Official mark-scheme answer for 7(A)Official mark-scheme answer for 7(A)

Official answer for Question 7

Part (a)

Part (a)

✓
START
✓
Distance ← 1
✓
READ
✓
SpeedCheck
✓
Is SpeedCheck
✓
Yes

Question 3

✓
< MaxSpeed
✓
[Dis t ance]?
✓
No
✓
1 mark
✓
Yes

Question 1

Question 5

✓
No
✓
1 mark
✓
No

Question 6

✓
Yes

Question 2

✓
1 mark
✓
No

Question 4

✓
Yes
[3]
✓
END
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – October/November 2015
✓
9691

Question 13

Mark scheme 9691_w15_ms_13.pdf →

Show text version of question

Question 7

Part (a)

A
train travels along a 300 km track. Its speed is computer-controlled.

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

[3]

Question 12

Topic relevance

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_13.pdf

Keep practising this topic