Question
A programmer uses a loop (iteration) to calculate the average of test scores for 50 students.
Explain two advantages of using iteration in this context rather than writing individual lines of code for each student.
3 marks · take your time before peeking.
Sign up to try the next 30 problems
Save your streak, mark answers against the spec, and build a daily revision habit. Free during public beta — no card, no auto-renew.
Generated by TopMyGrade AI · cross-check official sources before relying on the mark-scheme phrasing.