Records: grouping fields of different data types
A structure that groups related fields of different data types to describe one thing, such as a student's name (text), age (integer) and mark (decimal).
Understanding Records: grouping fields of different data types in VCE Data Analytics U3O2
What it does: Each student gets their own record with the same fields, showing one record per item. The array stores only integer marks, while the record mixes text (name) and a number (mark) to describe one thing. A field name labels the piece of data (studentName). "Ava Nguyen" is the value stored in that field. Fields in a record can differ in type. This is a key difference between records and arrays. Defining a record means naming every field and giving its data type, such as String, Integer or Float.
Common mistakes: Each field in a record must be declared as fieldName AS Type. The AS keyword is missing, so the line should be ' age AS Integer'. A book title is text, so the field should have the data type String, not Integer. The line should be ' title AS String'. Records can mix data types.
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 32–75) and word search (Modules 3–146).
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 →