Note AcademyNote Academy

Computer Science · Oct / Nov 2025 · Paper 21 · Question 10

0478

As printed in the paper

The question as text

The variables {´µœº¿½ and |°º¹´½ are used in a program. {´µœº¿½ holds the number of seconds as a whole number and |°º¹´½ holds the number of minutes as a whole number.

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

Show the answer and mark scheme
  • 10(a)[1]

    One mark for both declarations correct

    DECLARE Seconds : INTEGER

    DECLARE Minutes : INTEGER

  • 10(b)[4]

    One mark per bullet point

    PROCEDURE and ENDPROCEDURE naming the procedure Time with parameter
    correctly calculating minutes
    correctly calculating seconds
    output the minutes and seconds

    Example

    PROCEDURE Time(TotalSeconds : INTEGER)

    Minutes ← DIV(TotalSeconds, 60)

    Seconds ← MOD(TotalSeconds, 60)

    OUTPUT "The number of minutes is ", Minutes

    OUTPUT "The number of seconds is ", Seconds

    ENDPROCEDURE

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