OBJECT – ORIENTED PROGRAMMING JAVA
TEST QUESTIONS AND ANSWERS
Three Essential Characteristics of OOP - ANSWER Encapsulation
Inheritance
Polymorphism
Encapsulation - ANSWER An object-oriented methodology wherein an
object's internal details are "hidden" and its external use is greatly simplified to
make their reuse easy.
Inheritance - ANSWER Relationship between two classes, wherein one class -
called the subclass-inherits the properties and methods of another called the
superclass
Polymorphism - ANSWER A declaration of a variable to have one type when
in fact it actually refers to an object of a subclass of that type.
Object-Oriented Analysis - ANSWER A way of ascertaining what aspects of a
given problem may be thought of as objects in an eventual object-oriented
design.
Object Oriented Design - ANSWER A software design methodology that
represents the characteristics of abstract or real objects using classes and
objects.
, Object-Oriented Programming - ANSWER A method of programming that
includes objects, classes, encapsulation, interfaces, polymorphism, and
inheritance.
Cohesion - ANSWER The degree to which responsibilities of a given
component are 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".
TEST QUESTIONS AND ANSWERS
Three Essential Characteristics of OOP - ANSWER Encapsulation
Inheritance
Polymorphism
Encapsulation - ANSWER An object-oriented methodology wherein an
object's internal details are "hidden" and its external use is greatly simplified to
make their reuse easy.
Inheritance - ANSWER Relationship between two classes, wherein one class -
called the subclass-inherits the properties and methods of another called the
superclass
Polymorphism - ANSWER A declaration of a variable to have one type when
in fact it actually refers to an object of a subclass of that type.
Object-Oriented Analysis - ANSWER A way of ascertaining what aspects of a
given problem may be thought of as objects in an eventual object-oriented
design.
Object Oriented Design - ANSWER A software design methodology that
represents the characteristics of abstract or real objects using classes and
objects.
, Object-Oriented Programming - ANSWER A method of programming that
includes objects, classes, encapsulation, interfaces, polymorphism, and
inheritance.
Cohesion - ANSWER The degree to which responsibilities of a given
component are 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".