Linear Search algorithm in pseudocode
An algorithm that checks each element in an array one at a time, from the start, until the target is found or the end is reached.
Understanding Linear Search algorithm in pseudocode in VCE Pseudocode
What it does: This line sets found to TRUE once a match is located. DISPLAY prints the value of found to the output. Linear search moves through the array from the first element onward. Linear search works on sorted or unsorted arrays alike. By convention, pseudocode array indexing starts from 1. A single = is used for comparison in pseudocode. Once found, there's no need to keep checking further elements. The ← arrow assigns TRUE to the variable found.
Common mistakes: Array declarations use square brackets, not round brackets. An IF block must close with END IF, not END WHILE.
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
Linear SearchFill in the Blanks
Spot the Error
Student with a class code? Join your class →