COMPREHENSIVE EXAM 2026 FULL SOLVED
QUESTIONS 100% CORRECT
◉ instantiation. Answer: the process of creating an object with data from
an existing class
◉ constructor. Answer: the subroutine used for initiation
◉ polymorphism. Answer: the concept of changing a method in a child
class which has been inherited from a parent class, in order to make it
work for the data given to the child class
◉ overriding. Answer: process of doing polymorphism
◉ class. Answer: the blueprint on which an object will be initiated,
containing attributes and methods, but no data
◉ name. Answer: an overridden method has the same ___ as a method
in the parent class
,◉ object. Answer: a class which has been initiated to include data; a
specific instance of a class
◉ child class. Answer: a class which has inherited attributes and
methods from a parent class
◉ inheritance. Answer: the concept of getting attributes and methods
from another class
◉ is-a. Answer: inheritance is described as a ___ relationship
◉ aggregation. Answer: type of association; classes make up other
classes, without them being reliant on each other
◉ composition. Answer: the concept of a class being made up from
other classes
◉ composition. Answer: which type of association means classes
making up another class being destroyed means the higher level class
ceases to exist?
◉ method. Answer: outlines what happens with the data given to the
class
, ◉ static. Answer: a method which can be used without an object of the
class being instantiated
◉ virtual. Answer: a method which is defined in the base class, but can
be overridden by the method in the subclass where it will be used
◉ abstract. Answer: a method which is not provided in the base class, so
must be provided in the subclass
◉ attribute. Answer: property of a class
◉ parent class. Answer: the class from which a child class will inherit
◉ encapsulation. Answer: the concept of keeping the attributes, methods
and data in one place to prevent errors
◉ association. Answer: a relationship between classes which isn't
necessarily parent and child, but more dependency-related
◉ advantage of oop. Answer: programs written in modules, meaning
they're easy to amend, as only the affected module needs amending
◉ advantage of oop. Answer: easy to add new functionality by adding a
new module