Past-paper question · 2023 October-November · Paper 23 · Q2(a)

Question 2(a) 2023 · October-November · Paper 23 · 5 marks

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

Official answer for Question 2

Part (a)

Question 5

✓
MP1 Initialise Min to first value in Data and MinIndex to 1
✓
MP2 Loop through 29 more values (or 30 values in total)
✓
MP3 Compare element from Data[] with Min
✓
MP4 Set new Min AND save MinIndex when element value < Min in a loop
✓
MP5 Output MinIndex

Mark scheme 9618_w23_ms_23.pdf →

Show text version of question

Question 2

Part (a)

Question 2

Data is a 1D array of integers, containing 30 elements. All element values are unique.

Part (a)

An algorithm will output the index of the element with the smallest value.

Draw a program flowchart to represent the algorithm.

START

END

[5]

Question 5

Topic relevance

Why this question appears here

71% assigned-topic match · Algorithm design and problem-solving › Algorithms

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 9618_w23_qp_23.pdf

Keep practising this topic