Past-paper question · 2024 May-June · Paper 22 · Q7(a)

Question 7(a) 2024 · May-June · Paper 22 · 5 marks

Original past-paper question for 7(A)
Original past-paper question for 7(A)
Reveal official mark-scheme answer Official mark-scheme answer for 7(A)

Official answer for Question 7

Part (a)

✓
01//02//06//10

Question 3

✓
04(07) and/or 08
✓
03(12)
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s24_ms_22.pdf →

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

[3]
Topic relevance

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

Keep practising this topic