← VCE Pseudocode

Records in pseudocode

Accesses the name field of the student record, using a dot to connect the record to its field.

Understanding Records in pseudocode in VCE Pseudocode

What it does: This declaration bundles the car's fields together. The dot links the record student to its age field. Assignment uses ←, not =, in pseudocode. A field name must match its declared case exactly. A record can hold a mix of types, like text and numbers, in one place. A colon isn't used to access a field - use a dot instead. String values need quotes, just like normal variable assignments. The dot connects the record to its name field.

Common mistakes: A record isn't declared this way - use DECLARE ... OF RECORD. Field assignment uses ←, not =, in pseudocode.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

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.

Learning
Duo
Does a record group different fields under one name?
YesNo
Matches
student.name = "Sam"
↓
Wrong - use ← for assignment, not =
Applying
Meanings
Term
student.name
Meaning
Accesses the name field of the student record, using a dot to connect the record to its field.
Practice
BEGIN
Testing
Gaps
student. ← "Sam"
Check Answer
Spots
1RECORD student HAS name
2DECLARE student OF RECORD

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Blobfish' badge — Pressure Handler, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Does a record group different fields under one name?
A. No
B. Yes ✓
A record bundles related fields together under one variable name.
2. Is dot notation used to access a record's field?
A. Yes ✓
B. No
A dot connects the record name to the field you want, like student.name.
3. Is car.brand = "Ford" the correct way to assign a value?
A. No ✓
B. Yes
Assignment uses ←, not =, in pseudocode.
4. Are record field names case-sensitive in pseudocode?
A. No
B. Yes ✓
A field name must match its declared case exactly.
5. Can a record store fields of different data types together?
A. Yes ✓
B. No
A record can hold a mix of types, like text and numbers, in one place.

Match the Pairs

student.name → Accesses the name field of the student record
DECLARE book OF RECORD → Declares a new record called book
Groups related fields under one record name → DECLARE car OF RECORD
Connects a record name to one of its fields → student.age
student.name = "Sam" → Wrong - use ← for assignment, not =
DISPLAY student:name → Wrong - use a dot (.) to access a field, not a colon

Key Term

student.name
Accesses the name field of the student record, using a dot to connect the record to its field.

Fill in the Blanks

1. student.name ← "Sam"
Hint: Type the field name that stores the student's name.
2. DISPLAY student.name
Hint: Type the field name that stores the student's name.
3. student.age ← 15
Hint: Type the age value being assigned to the field.
4. DECLARE student OF RECORD
Hint: Type the keyword used to declare a record type.
5. book.title ← "Dune"
Hint: Type the field name that stores the book's title.

Spot the Error

Question 1
A RECORD student HAS name
B DECLARE student OF RECORD
C student.name ← "Sam"
Line A — A record isn't declared this way - use DECLARE ... OF RECORD.
Question 2
A DECLARE student OF RECORD
B student.name = "Sam"
C student.age ← 15
Line B — Field assignment uses ←, not =, in pseudocode.
Question 3
A DECLARE student OF RECORD
B student.name ← "Sam"
C DISPLAY student:name
Line C — Fields are accessed with a dot, not a colon.
Question 4
A DECLARE student OF RECORD
B student.name ← "Sam"
C student.age ← 15
D DISPLAY student.naem
Line D — The field name is misspelled - it should be 'name', not 'naem'.
Question 5
A DECLARE book OF RECORD
B book.title ← "Dune"
C book.pages ← 412
D DISPLAY book.title
E DISPLAY book.Pages
Line E — Field names are case-sensitive - it should be 'pages', not 'Pages'.

Student with a class code? Join your class →