OOP Quiz

Description

13C OOP Quiz
Callum McGregor
Quiz by Callum McGregor, updated more than 1 year ago
Callum McGregor
Created by Callum McGregor over 6 years ago
24
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

Spanish: Talking About Everyday Things
Niat Habtemariam
Physics - Energy, Power & Work
dominique22
Tectonic Hazards flashcards
katiehumphrey
Romeo and Juliet essay
Tambo234
George- Of mice and men
Elinor Jones
Key Shakespeare Facts
Andrea Leyden
Biological Psychology - Stress
Gurdev Manchanda
The Five Minute Lesson Plan Template
tom.roche_
Animal Farm CONTEXT
Lydia Richards2113
4. The Skeletal System - bones of the skull
t.whittingham
Information security and data protection
хомяк убийца