Lewis Hellier
Quiz by , created more than 1 year ago

A fun computing quiz about OOP

6
0
0
Lewis Hellier
Created by Lewis Hellier over 6 years ago
Close

Object-Orientated Programming

Question 1 of 8

1

A object is an of a class. Each class can have sub-classes which can the properties and methods of the main class. A is a action an object can perform, and a is a descriptor of the object, or a variable relating to it.

Drag and drop to complete the text.

    instance
    association
    inherit
    copy
    method
    property

Explanation

Question 2 of 8

1

Interfaces can only be implemented by 1 class

Select one of the following:

  • True
  • False

Explanation

Question 3 of 8

1

Check all which might be a property of a dog:

Select one or more of the following:

  • Breed

  • Colour

  • barkAtPostman

  • playDead

  • barkVolume

Explanation

Question 4 of 8

1

An association relationship can be:

Select one or more of the following:

  • 1-to-1

  • 1-to-Many

  • Many-to-Many

  • None of the above

Explanation

Question 5 of 8

1

In an aggregation relationship, if the parent object is destroyed, the child object is also destroyed.

Select one of the following:

  • True
  • False

Explanation

Question 6 of 8

1

Select from the dropdown lists to complete the text.

In composition relationships, if the ( parent, child ) object is destroyed, so too will the ( child, parent ) object. This is why it is often referred to as a "( death, destructive, murder, final )" relationship.

Explanation

Question 7 of 8

1

With polymorphism, each subclass may have its own way of implementing a function from the parent class.

Select one of the following:

  • True
  • False

Explanation

Question 8 of 8

1

Which of the following is not a real "method"?

Select one of the following:

  • Static

  • Abstract

  • Virtual

  • Real

Explanation