Past-paper question · 2020 October-November · Paper 22 · Q3

Question 3 2020 · October-November · Paper 22 · 6 marks

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

Official answer for Question 3

✓
One mark for each correct type of test and one mark for each correct

Question 6

✓
accompanying example of test data and reason (max six) e.g.
✓
•
✓
Extreme data
✓
•
✓
5000
✓
•
✓
to check it is accepted
✓
•
✓
Normal data
✓
•
✓
300
✓
•
✓
To check it is accepted
✓
•
✓
Abnormal data
✓
•
✓
10000
✓
•
✓
To check it is rejected
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2020
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w20_ms_22.pdf →

Show text version of question

Question 3

This pseudocode algorithm is used as a validation check.

PRINT "Input a number from 1 to 5000" REPEAT INPUT Number IF Number < 1 OR Number > 5000 THEN PRINT "Invalid number, please try again" ENDIF UNTIL Number >= 1 AND Number <= 5000 PRINT Number, " is within the correct range"

Identify three different types of test data. For each type, give an example of the test data you would use to test this algorithm and state a reason for your choice of test.

Type of test data 1 ...........................................................................................................................

Test data ...........................................................................................................................................

Reason .............................................................................................................................................

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

Type of test data 2 ...........................................................................................................................

Test data ...........................................................................................................................................

Reason .............................................................................................................................................

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

Type of test data 3 ...........................................................................................................................

Test data ...........................................................................................................................................

Reason .............................................................................................................................................

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

[6]

Question 9

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

Keep practising this topic