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.1 Fundamentals of OOP for a Single Class with authentic exam-style questions for both SL and HL students. This question bank focuses on the exact syllabus content for B3.1 Fundamentals of OOP for a Single Class 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 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.
An observatory must design a single class representing a dome booking, recording which astronomer booked it, which targets were observed, when the session began, and its total duration.
…
(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 marina declares the depth attribute of its Berth class as private. one consequence of declaring an attribute as private.