Past-paper question · 2019 May-June · Paper 22 · Q2(c)

Question 2(c) 2019 · May-June · Paper 22 · 3 marks

Original past-paper question for 2(C)
Original past-paper question for 2(C)
Original past-paper question for 2(C)
Reveal official mark-scheme answer Official mark-scheme answer for 2(C)

Official answer for Question 2

Part (c)

✓
Control structure: A (pre-) conditional loop

Question 3

✓
Function of code:
  • Check if Result is less than 20 and If true, calls ResetSensor with parameter
✓
value 3«
  • « and assign the value returned by GetSensor with parameter value 3 to
✓
Result
  • Loop until Result >= 20
✓
OR
✓
Control structure: A selection // conditional statement
✓
Function of code:
  • Check if Result is less than 20 and If true, calls ResetSensor with parameter
✓
value 3...
  • « and assign the value returned by GetSensor with parameter value 3 to
✓
Result
✓
One mark for control structure, maximum two for function
✓
Function of code marks independent of answer to control structure
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_22.pdf →

Show text version of question

Question 2

Part (c)

Part (c)

The following lines of code are taken from a high-level language program.

WHEN Result < 20 { Call ResetSensor(3) Result := GetSensor(3) }

Identify the type of control structure and describe the function of the code.

Control structure .......................................................................................................................

Function of code .......................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

[3]

Question 6

Topic relevance

Why this question appears here

82% 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 9608_s19_qp_22.pdf

Keep practising this topic