Object-Oriented Programming
[Java] Exam 2025 Questions and
Answers
Three Fundamental Features of OOP - ANSWER✔✔-Encapsulation
Inheritance
Polymorphism
Encapsulation - ANSWER✔✔-An object-oriented technique in which the internal details
of an object are "hidden" in order to simplify their use and reuse.
Inheritance - ANSWER✔✔-A relationship between two classes in which one class ( the
subclass) inherits all of the properties and capabilities of another ( the superclass)
Polymorphism - ANSWER✔✔-Declaring a variable to have one type while it refers to
an object of a subclass of that type.
Object-Oriented Analysis - ANSWER✔✔-A means of determining what aspects of a
given problem can be viewed as objects in an eventual object-oriented design.
, Object-Oriented Design - ANSWER✔✔-A software design method that models the
characteristics of abstract or real objects using classes and objects.
Object-Oriented Programming - ANSWER✔✔-A programming technique that features
objects, classes, encapsulation, interfaces, polymorphism, and inheritance.
Cohesion - ANSWER✔✔-Degree to which responsibilities of a given component are a
meaningful unit
Cohesion vs Coupling - ANSWER✔✔-Greater cohesion reflects better design. Less
coupling reflects better design.
Coupling - ANSWER✔✔-Degree to which one component must directly access the data
of another component.
Roles - ANSWER✔✔-Sets of Responsibilities
Roles vs. Objects - ANSWER✔✔-They are the same when a given role is always played
by the same object type.
Software Components - ANSWER✔✔-Reuse of code (e.g. Visual Basic, JavaBean)
Frameworks - ANSWER✔✔-Reuse of "plug-in" code (e.g. Java Swing)
Design Paterns - ANSWER✔✔-Reuse of Design
Agile Software Development - ANSWER✔✔-A philosophy of software development
that embraces flexibility and agility. The design "evolves".
[Java] Exam 2025 Questions and
Answers
Three Fundamental Features of OOP - ANSWER✔✔-Encapsulation
Inheritance
Polymorphism
Encapsulation - ANSWER✔✔-An object-oriented technique in which the internal details
of an object are "hidden" in order to simplify their use and reuse.
Inheritance - ANSWER✔✔-A relationship between two classes in which one class ( the
subclass) inherits all of the properties and capabilities of another ( the superclass)
Polymorphism - ANSWER✔✔-Declaring a variable to have one type while it refers to
an object of a subclass of that type.
Object-Oriented Analysis - ANSWER✔✔-A means of determining what aspects of a
given problem can be viewed as objects in an eventual object-oriented design.
, Object-Oriented Design - ANSWER✔✔-A software design method that models the
characteristics of abstract or real objects using classes and objects.
Object-Oriented Programming - ANSWER✔✔-A programming technique that features
objects, classes, encapsulation, interfaces, polymorphism, and inheritance.
Cohesion - ANSWER✔✔-Degree to which responsibilities of a given component are a
meaningful unit
Cohesion vs Coupling - ANSWER✔✔-Greater cohesion reflects better design. Less
coupling reflects better design.
Coupling - ANSWER✔✔-Degree to which one component must directly access the data
of another component.
Roles - ANSWER✔✔-Sets of Responsibilities
Roles vs. Objects - ANSWER✔✔-They are the same when a given role is always played
by the same object type.
Software Components - ANSWER✔✔-Reuse of code (e.g. Visual Basic, JavaBean)
Frameworks - ANSWER✔✔-Reuse of "plug-in" code (e.g. Java Swing)
Design Paterns - ANSWER✔✔-Reuse of Design
Agile Software Development - ANSWER✔✔-A philosophy of software development
that embraces flexibility and agility. The design "evolves".