UUnizy

UCL · COMP0004 · Computer Science

COMP0004 Object-Oriented Programming: exam practice questions, marked

Practise for COMP0004 Object-Oriented Programming at UCL with 30 quick-recall questions, 12 exam-style questions and 6 first-class stretch questions, written from the module’s published description. Write an answer and get it marked against UCL’s grade bands in about 30 seconds, with the exact sentences that lost marks and three changes to reach the next class.

Try one free, no sign-up Create a free account

Example COMP0004 question

(a) Write a Java class BankAccount with a private balance, a constructor, and methods deposit and withdraw that reject invalid amounts. [8 marks] (b) Explain how your design illustrates encapsulation and abstraction. [4 marks] (c) State the difference between instance and static members, with one example of each from your class or a related one. [3 marks]

Topics covered

  1. Classes, Objects and Abstraction
  2. Class Relationships and Class Diagrams
  3. Inheritance and Dynamic Binding
  4. Abstract Classes and Interfaces
  5. Design Principles and Good Practice
  6. Collections, Generics and Common Data Structures

About the module

Aims:This module provides a thorough introduction to object-oriented (OO) programming. The key object-oriented concepts such as class design, inheritance,...

Unizy is an independent revision tool and is not affiliated with or endorsed by UCL. Marks are practice estimates, not official marks.