TK Study

Past questions › sample-q24

2025 4 marks Design / diagram The Software Engineering Project (Year 12) Modelling tools (class diagram)

NESA HSC Software Engineering Sample Examination + Marking Guidelines (official, 2025)

A train company wants a class diagram that models the relationship between long-distance train trips and passengers. The long-distance train has: a unique trip identifier (e.g. AL456); a model code for the engine (e.g. E67) and a model code (e.g. P9754) for each passenger car; two different areas ("Standard" and "Executive"): Executive 20 seats, Standard 400 seats. Each passenger: has contact details (email + phone number); purchases a ticket ("Standard" or "Executive") and is given a seat number (e.g. 25D); may be a frequent traveller. Create a class diagram for the train company (drawing tool). (4 marks)

Marking criteria

4: Substantially correct class diagram with suitable classes, attributes and methods, showing inheritance, relationships and multiplicity. 3: Represents most features. 2: Some features. 1: Some understanding of the scenario.

Question page · Practise and get marked