CS151 EXAM QUESTIONS AND
ANSWERS. VERIFIED 2025/2026.
Which one is the correct order of "Java access modifiers" from the "least restriction to the
most" - ANS public, protected, default, private
Pick all true statements in OOP and the programming language supporting OOP, like Java: -
ANS We model the real universe's entities using objects
We model the behavior of the real universe's entities using java methods
Pick all true statements about "problem statement" in SDLC - ANS usually written by the
client
It describes what the problem is
Theoretically, it is a clear description of the problem
Artifact - definition - ANS An artifact is the output of a phase
3 Parts of a Problem Statement - ANS 1. Problem - define the problem and explain the
current issue
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, 2. Vision - What is the end goal, how will it look like in the future when implemented
3. Domain - target audience, who is affected by this problem
In Java, if we import a class but don't use it, it is NOT a "dependency" - ANS False
"Dependency" is a "symmetric" relationship - ANS False
Pick all true statements about "class relationship" - ANS ClassA is dependent on ClassB if
ClassA "uses" ClassB
"Aggregation" is a special case of "dependency"
Pick all true statements about "SDLC in theory" - ANS Choosing the "algorithms" is the
"implementation phase" concern
ClassA "aggregates" ClassB if.. - ANS ClassA contains ClassB in its "instance variables"
Pick all true statements about "technical-spec" - ANS It contains UML diagrams( classes +
relationship)
It's written by software architect
7 Phases of SDLC - ANS 1. Planning
2. Analysis
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
ANSWERS. VERIFIED 2025/2026.
Which one is the correct order of "Java access modifiers" from the "least restriction to the
most" - ANS public, protected, default, private
Pick all true statements in OOP and the programming language supporting OOP, like Java: -
ANS We model the real universe's entities using objects
We model the behavior of the real universe's entities using java methods
Pick all true statements about "problem statement" in SDLC - ANS usually written by the
client
It describes what the problem is
Theoretically, it is a clear description of the problem
Artifact - definition - ANS An artifact is the output of a phase
3 Parts of a Problem Statement - ANS 1. Problem - define the problem and explain the
current issue
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, 2. Vision - What is the end goal, how will it look like in the future when implemented
3. Domain - target audience, who is affected by this problem
In Java, if we import a class but don't use it, it is NOT a "dependency" - ANS False
"Dependency" is a "symmetric" relationship - ANS False
Pick all true statements about "class relationship" - ANS ClassA is dependent on ClassB if
ClassA "uses" ClassB
"Aggregation" is a special case of "dependency"
Pick all true statements about "SDLC in theory" - ANS Choosing the "algorithms" is the
"implementation phase" concern
ClassA "aggregates" ClassB if.. - ANS ClassA contains ClassB in its "instance variables"
Pick all true statements about "technical-spec" - ANS It contains UML diagrams( classes +
relationship)
It's written by software architect
7 Phases of SDLC - ANS 1. Planning
2. Analysis
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.