OOP Quiz

Beschreibung

13C OOP Quiz
Callum McGregor
Quiz von Callum McGregor, aktualisiert more than 1 year ago
Callum McGregor
Erstellt von Callum McGregor vor fast 9 Jahre
57
0

Zusammenfassung der Ressource

Frage 1

Frage
Which of the following are types of aggregation?
Antworten
  • Composition
  • Inheritance
  • Association
  • Instantiation

Frage 2

Frage
The principals behind composition aggregation is:
Antworten
  • Have classes take over the attributes of other classes, based on a "is" relationship
  • Have classes linked to other classes based on a "do" relationship where one cannot survive without another
  • Have classes linked to other classes based on a "do" relationship where one can survive without another

Frage 3

Frage
Object oriented programming is based on:
Antworten
  • Encapsulating what varies
  • Favour inheritance over composition
  • Program to interfaces, not implementation
  • Overriding methods

Frage 4

Frage
A class is an instantiation of an object
Antworten
  • True
  • False

Frage 5

Frage
Is Callum awesome?
Antworten
  • Yes
  • Very yes
  • No
  • Very no
  • Meh
  • I don't care
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt