Question 2(a) 2021 · October-November · Paper 22 · 11 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (a)
Question 5
- Sum and increment steps (bottom-right rectangles) may be in reverse
Show text version of question
Question 2
Part (a)
2 * ......................................... ("27")
Question 13
................................ (27 / .................................)
"Sub" & .................... ("Abstraction" , .................... , ....................) "Subtract"
Question 3
Part (d)
Evaluate the expressions given in the following table. The variables have been assigned
values as follows:
PumpOn ← TRUE ← PressureOK TRUE HiFlow ← FALSE
Expression Evaluates to
PressureOK AND HiFlow
PumpOn OR PressureOK
NOT PumpOn OR (PressureOK AND NOT HiFlow)
NOT (PumpOn OR PressureOK) AND NOT HiFlow
Question 4
Question 2
Part (a)
An algorithm will:
1. input an integer value 2. jump to step 6 if the value is zero 3. sum and count the positive values 4. sum and count the negative values 5. repeat from step 1 6. output the two sum values and the two count values.
Draw a program flowchart on the following page to represent the algorithm.
Note that variable declarations are not required in program flowcharts.
Question 5
Question 6
Why this question appears here
82% assigned-topic match · Programming › Programming basics
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 9618_w21_qp_22.pdf
