CIE · IGCSE · Computer Science
One real Computer Science question.
No signup. 30 seconds.
Topic: Programming concepts: arrays (1D and 2D) — declaration, access and manipulation. Pick an answer — get the mark scheme instantly.
Question · Difficulty 2/3
A programmer writes the following pseudocode loop to sum all elements in a 1D array Nums of size 5 (indices 0 to 4). Which loop correctly traverses every element exactly once? FOR counter ← ? TO ? DO total ← total + Nums[counter] NEXT counter
Tap an option to see the mark scheme
Pick your board & subject
Try a real question from the bank — no signup needed.