An escape pod drill system is reviewing two designs. In design one, a single Register class holds lists of pod codes, capacities, last drill dates and fault counts, with methods operating on those lists by index.
…
Practice IB Computer Science (First Exam 2027) Topic B3 Object-oriented Programming with authentic exam-style questions for both SL and HL students. This question bank focuses on the exact syllabus content for B3 Object-oriented Programming and mirrors Paper 1, 2 style where relevant.
Get instant solutions, detailed explanations, and build confidence with questions aligned to IB examiner expectations.
An escape pod drill system is reviewing two designs. In design one, a single Register class holds lists of pod codes, capacities, last drill dates and fault counts, with methods operating on those lists by index.
…
A packaging firm models a Crate as containing a Liner, and a Consignment as holding several Crates. A liner cannot exist without its crate, and a crate cannot exist without the consignment it was packed for.
(a) the relationship between Crate and Liner, and between Consignment and Crate.
(b) how these relationships affect what happens when a consignment record is deleted.
(c) whether modelling the liner as a separate class is worthwhile, given that it holds only a material name.
A fairground operator must count how many Carriage objects have been created.
(a) why this count must be held in a static rather than a non-static variable.
(b) the class, including a constructor initialising the code and increasing the count, and a method returning the count without acting on an individual object.
A climbing guidebook's Route class is described as applying information hiding. the concept of information hiding and how such a class applies it.
A camera museum's Camera class provides a method catalogue_entry that all cameras inherit. The FilmCamera class overrides it, and the DigitalCamera class does not. what happens when catalogue_entry is called on a DigitalCamera object.