Question 5(b) 2021 · May-June · Paper 21 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (b)
Question 2
- To output the type of test data
- … by performing a range check //… by checking if numbers are within the range 50 and 100 (inclusive) (or not).
Show text version of question
Question 5
Part (b)
Question 5
The flowchart represents an algorithm.
The algorithm will terminate if –1 is entered.
START
INPUT Value
IS Yes Value =
- 1 ?
OUTPUT "Reject: END No Abnormal"
IS No Value >= 50 AND Value <= 100 ?
Yes
Diff1 100 – Value
Diff2 Value – 50
IS OUTPUT No Diff1 < 1 OR "Accept: Normal" Diff2 < 1 ?
Yes
OUTPUT "Accept: Extreme"
Question 11
Part (b)
Describe the purpose of the algorithm.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Question 12
Why this question appears here
94% 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_s21_qp_21.pdf
