Professional Documents
Culture Documents
Date:____________________
Total Weight:- 20 %
GENERAL DIRECTIONS
1
GAGE COLLEGE DEPARTMENT OF COMPUTER SCIENCE OBJECT ORIENTED
PROGRAMMING FINAL EXAM
Part One: Say true if the statement is correct false if the statement is incorrect. (10 pts.)
False
_______ 1.A way of simplifying complex reality is called encapsulation
True
_______ 2.A class is a blue print or template that defines states and behavior common to all objects of a
certain kind.
True
_______ 3.A block statement is a group of zero or more statement between balanced braces and can be
used anywhere a single statement is allowed.
True 4. Object is instance of a class
_______
True 5. Java provides a default constructor automatically if the programmer does not define it.
_______
True 6. Default, parameterized and copy constructors are the three types of constructor.
_______
True
_______ 7. In the concept of inheritance the super class does not know the existence of the sub class but
the sub class knows the existence of the super class
False 8. Java does not support multiple inheritances that a derived class can have only one parent class.
_______
True 9. Constructors are used for initializing the instance, variables of an object
_______
True 10. Interface is useful when there is a parent and child class relationships to inherit the property of
_______
parent class.