Past-paper question · 2018 October-November · Paper 22 · Q4

Question 4 2018 · October-November · Paper 22 · 4 marks

Original past-paper question for 4
Original past-paper question for 4
Reveal official mark-scheme answer Official mark-scheme answer for 4

Official answer for Question 4

✓
Answers must be given in context. There are many possible answers. E.g.:

Question 4

✓
Selection use of IF statement to check the values of the meter readings (1 mark)
✓
IF Reading > 400 and Reading < 900 THEN …
✓
(1 mark)
✓
Repetition use of FOR loop to check all 2000 meter readings
✓
(1 mark)
✓
FOR Meter = 1 TO 2000 … NEXT
✓
(1 mark)
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
October/November 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w18_ms_22.pdf →

Show text version of question

Question 4

A
programmer wants to test that the readings from 2000 electricity meters are greater than 400

units and less than 900 units. The programmer uses selection and repetition statements as part of the program. Explain, using programming statements, how selection and repetition could be used in this program.

Selection ..........................................................................................................................................

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

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

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

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

Repetition .........................................................................................................................................

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

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

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

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

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

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

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

[4]

Question 9

Question 5 starts on page 10.

Question 10

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_w18_qp_22.pdf

Keep practising this topic