Past-paper question · 2023 May-June · Paper 22 · Q4(b)(ii)

Question 4(b)(ii) 2023 · May-June · Paper 22 · 3 marks

Original past-paper question for 4(B)(II)
Original past-paper question for 4(B)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 4(B)(II)

Official answer for Question 4

Part (b)

(ii)

✓
One mark for each point (max three).

Question 3

✓
use of iteration
✓
use of two inputs
✓
to check that the two inputs are the same / different
✓
use of the given variable Measurement
✓
For example
✓
REPEAT
✓
OUTPUT "Please enter measurement "
✓
INPUT Measurement
✓
OUTPUT "Please re-enter measurement "
✓
INPUT MeasurementCheck
✓
UNTIL Measurement = MeasurementCheck
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s23_ms_22.pdf →

Show text version of question

Question 4

Part (b)

(ii)

Question 4

A program needs to make sure the value input for a measurement meets the following rules:

  • the value is a positive number
  • a value is always input
  • the value is less than 1000.

The program needs editing to include a double entry check for the value input.

(ii)

The input value needs to be stored in the variable Measurement

Write pseudocode to perform the double entry check until a successful input is made.

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

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

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

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

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

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

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

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

[3]

Question 4

Topic relevance

Why this question appears here

98% assigned-topic match · Programming › Programming concepts

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 2210_s23_qp_22.pdf

Keep practising this topic