Arrays in pseudocode
Accesses the array element at index 1, using square brackets to specify the position.
Understanding Arrays in pseudocode in VCE Pseudocode
What it does: This is exactly how a 5-element integer array is declared. This loop visits each index from 1 to 5 in turn. Square brackets are used to access array elements. The ← symbol assigns a value, just like with normal variables. END FOR closes a FOR loop block correctly. A FOR loop with the array's size lets you visit every element. By convention, indexing starts from 1, not 0. This line stores 10 at index 1 of the scores array.
Common mistakes: Arrays are declared with DECLARE, not ARRAY, in VCAA pseudocode. Array elements use square brackets, not round brackets.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 11–28) and word search (Modules 1–28).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
scores[1]Fill in the Blanks
Spot the Error
Student with a class code? Join your class →