Past-paper question · 2021 October-November · Paper 22 · Q2(a)

Question 2(a) 2021 · October-November · Paper 22 · 11 marks

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

Official answer for Question 2

Part (a)

Question 5

✓
One mark for each outlined group.
✓
Note:
  • Sum and increment steps (bottom-right rectangles) may be in reverse
✓
order in which case sum group will have two output lines
✓
•
✓
9618/22
✓
Cambridge International AS & A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2021
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_w21_ms_22.pdf →

Show text version of question

Question 2

Part (a)

2 * ......................................... ("27")

Question 13

................................ (27 / .................................)

"Sub" & .................... ("Abstraction" , .................... , ....................) "Subtract"

[4]

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

[2]

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

[5]

Question 6

Topic relevance

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

Keep practising this topic