CS151 EXAM QUESTIONS AND
ANSWERS. VERIFIED 2025/2026.
Pick all true statement in OOP.
1. Paradigm is a way for modeling and representing of the entities and their interactions.
2. In object-oriented paradigm, we model the entities of the real universe by "Objects"
3. Behavior of an object is the set of the operations (or services) that object can do (or give)
4. Identity of an object is the name we give to it. - ANS 1, 2, 3
Not 4 because
Identity - unique name given to the object by the Java Virtual Machine
Pick all that are class members in OOP
1. Instance Variables
2. Interface
3. Methods
4. None - ANS 1, 3
Interface of a class is all members that can be seen from outside of a class.
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, True/false - ANS True
An object is an entity that has 3 properties: state, behavior, and identity
True/false - ANS True
UML stands for... - ANS Unified Modeling Language
What is the definition of an object? - ANS An object is an entity with state, behavior, and
identity. Objects exist independently from one another.
What is the definition of "state" of an object? - ANS State is the values of the attributes of the
object at any given point in time.
What is the definition of "class" in OOP? - ANS Class is an abstraction of similar objects.
What is the definition of API? - ANS Application Programming Interface
The interface of a class is whatever can be seen from outside of the class.
T/F - ANS True
Which one is class member in OOP?
Instance variables
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
ANSWERS. VERIFIED 2025/2026.
Pick all true statement in OOP.
1. Paradigm is a way for modeling and representing of the entities and their interactions.
2. In object-oriented paradigm, we model the entities of the real universe by "Objects"
3. Behavior of an object is the set of the operations (or services) that object can do (or give)
4. Identity of an object is the name we give to it. - ANS 1, 2, 3
Not 4 because
Identity - unique name given to the object by the Java Virtual Machine
Pick all that are class members in OOP
1. Instance Variables
2. Interface
3. Methods
4. None - ANS 1, 3
Interface of a class is all members that can be seen from outside of a class.
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, True/false - ANS True
An object is an entity that has 3 properties: state, behavior, and identity
True/false - ANS True
UML stands for... - ANS Unified Modeling Language
What is the definition of an object? - ANS An object is an entity with state, behavior, and
identity. Objects exist independently from one another.
What is the definition of "state" of an object? - ANS State is the values of the attributes of the
object at any given point in time.
What is the definition of "class" in OOP? - ANS Class is an abstraction of similar objects.
What is the definition of API? - ANS Application Programming Interface
The interface of a class is whatever can be seen from outside of the class.
T/F - ANS True
Which one is class member in OOP?
Instance variables
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.