Past-paper question · 2022 October-November · Paper 22 · Q1(b)

Question 1(b) 2022 · October-November · Paper 22 · 3 marks

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

Official answer for Question 1

Part (b)

✓
One mark per mark point, max two

Question 3

✓
MP1
✓
use a (range) check to check for values between 1 and 14
✓
MP2
✓
use a (type) check to ensure an integer is entered
✓
… using an (appropriate) IF/conditional statement
✓
MP3
✓
MP4
✓
outputs an error message if a new input is required
✓
MP5
✓
re-enter data using WHILE/REPEAT loop until a valid entry has been made
✓
One mark
✓
MP6
✓
appropriate line of code / construct to answer the question
✓
Example code
✓
INPUT Day
✓
WHILE Day < 1 OR Day > 14 DO
✓
OUTPUT "You must enter a number between 1 and 14 inclusive"
✓
INPUT Day
✓
ENDWHILE
✓
Cambridge O Level – Mark Scheme
✓
2210/22
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w22_ms_22.pdf →

Show text version of question

Question 1

Part (b)

Question 1

All variables, constants and other identifiers must have meaningful names.

Part (b)

Describe how your program could validate the input for the day number within the two-week

period to make sure an appropriate value is entered (part of Task 1).

You must include programming statements as part of your answer.

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

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

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

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

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

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

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

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

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

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

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

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

[3]

Question 4

Topic relevance

Why this question appears here

88% assigned-topic match · Programming

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

Keep practising this topic