Past-paper question · 2024 May-June · Paper 23 · Q5(c)

Question 5(c) 2024 · May-June · Paper 23 · 3 marks

Original past-paper question for 5(C)
Original past-paper question for 5(C)
Original past-paper question for 5(C)
Reveal official mark-scheme answer Official mark-scheme answer for 5(C)

Official answer for Question 5

Part (c)

✓
(The identifiers L, S, T and A) are single letters

Question 3

✓
… so do not give any indication of what values they hold.
✓
For programs to be maintainable, identifiers should have meaningful names.

Mark scheme 0478_s24_ms_23.pdf →

Show text version of question

Question 5

Part (c)

Question 5

The flowchart represents an algorithm.

START

L 0 S 10000 T 0

A
0

INPUT Limit

Count 1

INPUT Value

IS IS No No Value < S Value > L ? ?

Yes Yes

S Value L Value

T T + Value

IS No Count > Count Count + 1 Limit ?

Yes

A
T / Limit

OUTPUT "L = ", L, " S = ", S, " T = ", T, " A = ", A

STOP

Question 7

Part (c)

Explain why the identifiers L, S, T and A may not be appropriate to use as identifiers and how

they could be improved.

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

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

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

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

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

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

[3]
Topic relevance

Why this question appears here

69% assigned-topic match · Boolean logic

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_s24_qp_23.pdf

Keep practising this topic