SOFTWARE ENGINEERING NEWEST
TESTBANK EXAM 2025/2026
(COMPUTER SCIENCE) FOR
GUARANTEED PASS WITH APPROVED
QUESTIONS AND EXPERT VERIFIED
ANSWERS UPDATES.
Association
-.......ANSWER.......When objects are related to one another, the
relationship is called association among the objects
Name the types of Association
-.......ANSWER.......1. Aggregation 2. Composition
Aggregation
-.......ANSWER.......Special form of association where all objects have
their own lifecycle but there is ownership
Example of aggregation?
-.......ANSWER.......Car and Driver
Example of composition?
,2|Page
-.......ANSWER.......Car and Wheels
What kind of relationship is Inheritance, example? -
.......ANSWER.......is-a relationship, House is a Building
What kind of relationship is Composition, example? -
.......ANSWER.......owns (has-a) relationship, House has a bathroom
When to use inheritance?
-.......ANSWER.......Use inheritance when base interface is required to
be available in derived classes either as is or with some functions
overidden
When to use composition?
-.......ANSWER.......Use composition when the base interface is not
needed or needs to be augmented or controlled by the enclosing class
also when the enclosing class uses several objects of differing classes
What is the symbol for an aggregation?
-.......ANSWER.......white headed spear:
College has a student
[College]<>---[Student]
What is the symbol for a composition?
,3|Page
-.......ANSWER.......black headed spear:
College owns a department
[College]<*>---[Dept.]
Given a choice should you prefer composition or inheritance? -
.......ANSWER.......Composition is preferred
Name a set of design principles for object-oriented software? -
.......ANSWER.......SOLID principles
What does the S stand for in SOLID?
-.......ANSWER.......Single responsibility principle (SRP)
What does the O stand for in SOLID?
-.......ANSWER.......Open-close principle (OCP)
What does the L stand for in SOLID?
-.......ANSWER.......Liskov substitution principle (LSP)
What does the I stand for in SOLID?
-.......ANSWER.......Interface segregation principle (ISP)
What does the D stand for in SOLID?
, 4|Page
-.......ANSWER.......Dependency inversion principle (DIP)
What is Single responsibility principle (SRP)? -
.......ANSWER.......computer programming principle that states that
every module, class, or function should have responsibility over a single
part of the functionality provided by the software
What is SRP closely related to
-.......ANSWER.......concepts of cohesion and coupling
What is the open-close principle?
-.......ANSWER.......OCP states that software entities should be OPEN
for extension but CLOSED for modification
What is Liskov substitution principle?
-.......ANSWER.......It states that objects in a program should be
replaceable with instances of their subtypes without altering the
correctness of that program
LSP is a particular definition of a subtyping relation called _________. -
.......ANSWER.......(strong) behavioural subtyping
What is subtyping?
-.......ANSWER.......its a form of polymorphism in which a subtype is a
datatype that is related to another datatype (the supertype) by some
notion of substitutability, meaning that methods or functions, operate on