Past-paper question · 2021 May-June · Paper 22 · Q1(b)

Question 1(b) 2021 · May-June · Paper 22 · 6 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 for description, one mark for normal data and one mark for erroneous data for two checks

Question 6

✓
Validation check
✓
(type check) to check that the number entered is a whole number / integer
✓
Normal data

Question 34

✓
Erroneous data
✓
two // 1.5
✓
Validation check
✓
(range check) to check that the value of the number entered is between 1 and 80 / 480 inclusive
✓
Normal data

Question 34

✓
Erroneous data
✓
99 // 500
✓
Validation check
✓
(presence check) to check that a value has been entered
✓
Normal data
✓
34 // any data entered
✓
Erroneous data
✓
“” // blank // no data entered
✓
Validation check
✓
(length check) to check that a value has 3 digits or fewer // between 1 and 3 digits
✓
Normal data
✓
345
✓
Erroneous data
✓
3456
✓
Many correct answers, the data are examples only.
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s21_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 two validation checks that could be used when inputting the number of tickets to

buy for Task 2. For each validation check give one example of normal data and one example of erroneous data.

Validation check 1 .....................................................................................................................

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

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

Normal data ..............................................................................................................................

Erroneous data .........................................................................................................................

Validation check 2 .....................................................................................................................

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

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

Normal data ..............................................................................................................................

Erroneous data .........................................................................................................................

[6]

Question 4

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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

Keep practising this topic