Object-Orientated Programming

Beschreibung

A fun computing quiz about OOP
Lewis Hellier
Quiz von Lewis Hellier, aktualisiert more than 1 year ago
Lewis Hellier
Erstellt von Lewis Hellier vor etwa 7 Jahre
10
0

Zusammenfassung der Ressource

Frage 1

Frage
A object is an [blank_start]instance[blank_end] of a class. Each class can have sub-classes which can [blank_start]inherit[blank_end] the properties and methods of the main class. A [blank_start]method[blank_end] is a action an object can perform, and a [blank_start]property[blank_end] is a descriptor of the object, or a variable relating to it.
Antworten
  • instance
  • association
  • inherit
  • copy
  • method
  • property

Frage 2

Frage
Interfaces can only be implemented by 1 class
Antworten
  • True
  • False

Frage 3

Frage
Check all which might be a property of a dog:
Antworten
  • Breed
  • Colour
  • barkAtPostman
  • playDead
  • barkVolume

Frage 4

Frage
An association relationship can be:
Antworten
  • 1-to-1
  • 1-to-Many
  • Many-to-Many
  • None of the above

Frage 5

Frage
In an aggregation relationship, if the parent object is destroyed, the child object is also destroyed.
Antworten
  • True
  • False

Frage 6

Frage
In composition relationships, if the [blank_start]parent[blank_end] object is destroyed, so too will the [blank_start]child[blank_end] object. This is why it is often referred to as a "[blank_start]death[blank_end]" relationship.
Antworten
  • parent
  • child
  • child
  • parent
  • death
  • destructive
  • murder
  • final

Frage 7

Frage
With polymorphism, each subclass may have its own way of implementing a function from the parent class.
Antworten
  • True
  • False

Frage 8

Frage
Which of the following is not a real "method"?
Antworten
  • Static
  • Abstract
  • Virtual
  • Real
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
Output Devices
Jess Peason
Computing
Kwame Oteng-Adusei
Pack of playing cards answer
Karl Taylor
Code Challenge Flow Chart
Charlotte Hilton
Quiz on Netowk Hardware
Aishah Rao
GCSE AQA Physics - Unit 1
James Jolliffe
SMART School Year Goals
Alice McClean
GCSE AQA Biology - Unit 1
James Jolliffe
Vetie Immunologie Übungsfragen
Janneke Bosse