OOP Quiz

Description

13C OOP Quiz
Callum McGregor
Quiz by Callum McGregor, updated more than 1 year ago
Callum McGregor
Created by Callum McGregor about 7 years ago
26
0

Resource summary

Question 1

Question
Which of the following are types of aggregation?
Answer
  • Composition
  • Inheritance
  • Association
  • Instantiation

Question 2

Question
The principals behind composition aggregation is:
Answer
  • 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

Question 3

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

Question 4

Question
A class is an instantiation of an object
Answer
  • True
  • False

Question 5

Question
Is Callum awesome?
Answer
  • Yes
  • Very yes
  • No
  • Very no
  • Meh
  • I don't care
Show full summary Hide full summary

Similar

Geography Quiz
PatrickNoonan
Rounding to decimal places
Ellen Billingham
Biology Unit 1
hannahsanderson1
Key Biology Definitions/Terms
mia.rigby
B2, C2, P2
George Moores
Biological Psychology - Stress
Gurdev Manchanda
Sociology: Crime and Deviance Flash cards
Beth Morley
Chemistry unit 2
36jessieh
The Cold War: An Overview
Andrea Leyden
The Effects of Climate Change
j. stu
Health and Safety at Work Act 1974 (HASWA)
Carina Storm