Past-paper question · 2023 October-November · Paper 22 · Q3(b)

Question 3(b) 2023 · October-November · Paper 22 · 4 marks

Original past-paper question for 3(B)
Original past-paper question for 3(B)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)

Official answer for Question 3

Part (b)

✓
One mark per mark point, max four

Question 4

✓
MP1
✓
initialise a variable to store the lowest number set to a high value (at
✓
least 100) / first value in the array
✓
MP2
✓
loop structure to iterate 25 times
✓
MP3
✓
use of IF to check if the array element is less than the current lowest
✓
value
✓
…if it is, set this to the lowest value
✓
MP4
✓
MP5
✓
output the result (with an appropriate message) after the loop
✓
Example answer:
✓
Min 100
✓
FOR Count 1 TO 25
✓
IF Temperatures[Count] < Min
✓
THEN
✓
Min Temperatures[Count]
✓
ENDIF
✓
NEXT Count
✓
OUTPUT "The lowest temperature is ", Min
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w23_ms_22.pdf →

Show text version of question

Question 3

Part (b)

Question 3

Four pseudocode statements and five pseudocode uses are shown.

Part (b)

A one‑dimensional (1D) array called Temperatures[] has 25 elements beginning at

index 1. It holds values that range between –20 and 100 inclusive.

Write a pseudocode algorithm using a single loop to find the lowest value in this array and output the result only once.

You do not need to declare or populate this array.

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

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

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

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

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

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

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

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

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

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

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

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

[4]

Question 4

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 0478_w23_qp_22.pdf

Keep practising this topic