Question 7(a) 2024 · May-June · Paper 22 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 7
Part (a)
Question 3
Show text version of question
Question 7
Part (a)
Question 7
An algorithm has been written in pseudocode to find and display the maximum and minimum
values in an array of 1000 positive numbers. The array List[] starts at index 1
01 Max List[1] 02 Min List[1] 03 FOR Counter 2 TO 1000 04 IF List[Counter] < Max 05 THEN 06 Max List[Counter] 07 ENDIF 08 IF List[Count] ˂ Min 09 THEN 10 Min List[Counter] 11 ENDWHILE 12 NEXT Counter 13 OUTPUT "Maximum value is ", Max 14 OUTPUT "Minimum value is ", Min
Part (a)
Give a line number for each of these types of statement:
Assignment statement ..............................................................................................................
Selection statement ..................................................................................................................
Iteration statement ....................................................................................................................
Why this question appears here
98% assigned-topic match · Programming › Arrays
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_s24_qp_22.pdf
