Note AcademyNote Academy

Computer Science · Oct / Nov 2024 · Paper 2 SL · Question 12

Adapt for 2027Inheritance and UML class diagrams are in the Higher Level multiple-classes topic, and modularity is in B2.3.4. Its main topic (B3.2) is Higher Level only in 2027; Standard Level students can do only the part on B3.1, B2.3.

IBCS

As printed in the paper

The question as text

12. The Trip class is shown in Figure 8. A trip may be classified as an adventure trip, a service trip or a culture trip based on certain characteristics. Hence, three new classes AdventureTrip, ServiceTrip and CultureTrip must be created. y Adventure trips require students to be physically fit and bring trekking shoes. y Service trips require students to have good communication skills. y Culture trips require students to bring a camera. Figure 8: UML diagram of the Trip class <Trip class> - tripNumber: int - tripTitle: String - tripDesc: String - spotsFilled: int - isRunning: boolean - tList: ArrayList <String> + updateSpotsFilled() + addStudentToTripList(Students) + getters() + setters()

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 12(a)(i)[5]

  • 12(a)(ii)[1]

  • 12(a)(iii)[4]

  • 12(a)(iv)[1]

  • 12(b)[4]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.