Skip to main content

← Computer Science syllabus

United StatesComputer Science

Unit 4: Iteration

5 dot points across 5 inquiry questions. Click any dot point for a focused answer with worked past exam questions where available.

How do you traverse a String with a loop to count, search or transform its characters?

How does a for loop package initialisation, condition and update into one header, and when do you use it?

How do you count how many times a statement executes in a loop, including nested loops?

How do nested loops work, and how do you count the total iterations of an inner loop inside an outer loop?

How does a while loop repeat a block of code, and how do you avoid an infinite loop?