Note AcademyNote Academy

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

0478

As printed in the paper

The question as text

The flowchart represents an algorithm. {x­ox {xn» uœ¹º « Šw»vx w¹ÄÅ´¾ wœ t´½ ‹žŸ¹´ uœ¹º Æ w¹ÄÅ´¾ Š{ ‹žŸ¹´ Ç© ¡«« È uœ¹º uœ¹º É ¡ nvx»vx uœ¹º uœ¹º uœ¹º Á ¡

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

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

    One mark per column across both tables:

    Input data: 20

    Count

    Number

    Value

    Output

    0

    20

    0

    1

    20

    2

    40

    3

    60

    4

    80

    5

    100

    6

    120

    5

    5

    Input data: 110

    Count

    Number

    Value

    Output

    0

    110

    0

    1

    110

    0

    0

  • 7(b)[1]

    One mark from:

    DIV algorithm
    Integer division
    to find how many times the number goes into 100
  • 7(c)[1]

    Integer

  • 7(d)[4]

    One mark per point:

    Either

    declare Count
    initialise Count
    use of DIV
    … with correct parameters

    Or

    declare Count
    use of while/repeat
    … with correct condition
    output of correct count

    Examples:

    DECLARE Count : INTEGER

    Count ← 0

    INPUT Number

    Value ← Count * Number

    WHILE Value <= 100 DO

    Count ← Count + 1

    Value ← Count * Number

    ENDWHILE

    Count ← Count – 1

    OUTPUT Count

    Or

    DECLARE Count : INTEGER

    (Count ← 0)

    INPUT Number

    Count ← DIV(100, Number)

    OUTPUT Count

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