Question 2(c) 2019 · May-June · Paper 22 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (c)
Question 3
- Check if Result is less than 20 and If true, calls ResetSensor with parameter
- « and assign the value returned by GetSensor with parameter value 3 to
- Loop until Result >= 20
- Check if Result is less than 20 and If true, calls ResetSensor with parameter
- « and assign the value returned by GetSensor with parameter value 3 to
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 .......................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Question 6
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
