Lewis Hellier
Quiz von , erstellt am more than 1 year ago

A fun computing quiz about OOP

6
0
0
Lewis Hellier
Erstellt von Lewis Hellier vor mehr als 6 Jahre
Schließen

Object-Orientated Programming

Frage 1 von 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.

Klicke und ziehe, um den Text zu vervollständigen.

    instance
    association
    inherit
    copy
    method
    property

Erklärung

Frage 2 von 8

1

Interfaces can only be implemented by 1 class

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 3 von 8

1

Check all which might be a property of a dog:

Wähle eine oder mehr der folgenden:

  • Breed

  • Colour

  • barkAtPostman

  • playDead

  • barkVolume

Erklärung

Frage 4 von 8

1

An association relationship can be:

Wähle eine oder mehr der folgenden:

  • 1-to-1

  • 1-to-Many

  • Many-to-Many

  • None of the above

Erklärung

Frage 5 von 8

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 6 von 8

1

Wähle von der Dropdown-Liste, um den Text zu vervollständigen.

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.

Erklärung

Frage 7 von 8

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 8 von 8

1

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

Wähle eine der folgenden:

  • Static

  • Abstract

  • Virtual

  • Real

Erklärung