Records: fields with different data types
A data structure that groups related fields of different data types into one item describing one thing, e.g. a student's name (String), age (Integer) and enrolled (Boolean).
Understanding Records: fields with different data types in VCE Software Development U3O1
What it does: One record (s1) bundles a String, an Integer and a Boolean that all describe one student, Ava. Each Student record in the array is one row, and name, age and enrolled are the columns, so the array stores a whole table of students. A record groups related fields that can have different data types. An array is the structure that usually holds values of one data type. Each field is defined by its name and its data type, for example age: Integer. Enrolled is either true or false, so the Boolean data type is the best choice.
Common mistakes: A student's name is text, so the field must have the data type String, not Integer. It should be: name AS String. In a Python dictionary record, each field name is joined to its value with a colon, not an equals sign. It should be: student = {"name": "Ava",.
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 98–113) and word search (Modules 72–113).
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
recordFill in the Blanks
Spot the Error
Student with a class code? Join your class →