TopMyGrade

Home·Daily Problem

Daily Problem·Thursday, 15 January 2026Back to today

FOR vs WHILE

GCSE · Computer Science · OCR · 2.2.1Programming concepts: variables, constants, sequence, selection (IF), iteration (WHILE, FOR), input/output

Question

State **one** situation where a FOR loop is appropriate and **one** where a WHILE loop is more appropriate. [2 marks]

2 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.