Unit 7: B3 Object-oriented programming

Topic 7.1: Object-oriented programming Questions

Practice 20 exam-style questions for IB Computer Science Topic 7.1. Review the question stems below, then unlock the full Question Bank to access markschemes, model answers, and AI grading.

1Determine3 marks
2026
Determine the methods a Seat class in a cinema system should offer.
Markscheme and model answer locked
Unlock Question
2Explain4 marks
2026
Explain why a well-designed interface makes a class easier to change.
Markscheme and model answer locked
Unlock Question
3Determine3 marks
2026
Determine whether a Car and an Engine should be related by inheritance or association, and justify your answer.
Markscheme and model answer locked
Unlock Question
4Suggest4 marks
2026
Suggest how a class called StudentManager that stores students, prints reports and sends emails should be redesigned.
Markscheme and model answer locked
Unlock Question
5Choose1 mark
2026
Choose what a static attribute belongs to.
Markscheme and model answer locked
Unlock Question
6Explain2 marks
2026
Explain why two objects of the same class can hold different values.
Markscheme and model answer locked
Unlock Question
7Outline2 marks
2026
Outline what accessor and mutator methods are.
Markscheme and model answer locked
Unlock Question
8Explain4 marks
2026
Explain why passing an object to a method is different from passing a number.
Markscheme and model answer locked
Unlock Question
9Determine3 marks
2026
Determine what happens when a method sets an object parameter to a new object.
Markscheme and model answer locked
Unlock Question
10Explain3 marks
2026
Explain what a null reference is and why it causes errors.
Markscheme and model answer locked
Unlock Question
11Explain4 marks
2026
Explain why encapsulation is not primarily a security measure.
Markscheme and model answer locked
Unlock Question
12Suggest4 marks
2026
Suggest why creating very large numbers of small objects can affect performance.
Markscheme and model answer locked
Unlock Question
13Explain4 marks
2026
Explain how encapsulation helps when a class's internal representation changes.
Markscheme and model answer locked
Unlock Question
14Choose1 mark
2026
Choose what happens when one object reference is assigned to another variable.
Markscheme and model answer locked
Unlock Question
15Choose1 mark
2026
Choose the problem with making an attribute public.
Markscheme and model answer locked
Unlock Question
16Choose1 mark
2026
Choose the relationship between a Library and the Books it holds.
Markscheme and model answer locked
Unlock Question
17Outline2 marks
2026
Outline the purpose of a constructor.
Markscheme and model answer locked
Unlock Question
18Explain4 marks
2026
Explain two benefits of the object-oriented approach.
Markscheme and model answer locked
Unlock Question
19Outline2 marks
2026
Outline what inheritance is.
Markscheme and model answer locked
Unlock Question
20Define1 mark
2026
Define object-oriented programming.
Markscheme and model answer locked
Unlock Question

Ready to practice Topic 7.1?

Get instant AI feedback on your answers, view detailed markschemes, and track your progress across all IB Computer Science topics.

Start Practising Now