Past-paper question · 2023 May-June · Paper 12 · Q10

Question 10 2023 · May-June · Paper 12 · 6 marks

Original past-paper question for 10
Original past-paper question for 10
Reveal official mark-scheme answer Official mark-scheme answer for 10

Official answer for Question 10

✓
Six marks available

Question 6

✓
count ←0
✓
smallest←1000
✓
WHILE count < 6
✓
INPUT number
✓
IF number < smallest
✓
THEN
✓
smallest ← number
✓
ENDIF
✓
count← count+1
✓
ENDWHILE
✓
PRINT smallest

Mark scheme 9626_s23_ms_12.pdf →

Show text version of question

Question 10

Gustav has started to write an algorithm using pseudocode. It will input 6 numbers, all less than 1000, and output the smallest value.

Complete the algorithm using pseudocode.

count 0 smallest 1000 WHILE count < 6

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

....................................................................................................................................................

[6]

Question 11

Question 12

reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.

Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Algorithms and flowcharts › Algorithms and flowcharts

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 9626_s23_qp_12.pdf

Keep practising this topic