Question 3 2020 · October-November · Paper 22 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 3
Question 6
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 .............................................................................................................................................
..........................................................................................................................................................
Question 9
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
