Note AcademyNote Academy

Computer Science · Oct / Nov 2023 · Paper 22 · Question 3

0478

As printed in the paper

The question as text

Four pseudocode statements and five pseudocode uses are shown.

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 3(a)[4]

    One mark for each correct line.

  • 3(b)[4]

    One mark per mark point, max four

    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

    MP4

    …if it is, set this to the lowest value

    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

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.