You are on page 1of 2

GAGE COLLEGE FACULTY OF TECHNOLOGY

DEPARTMENT OF COMPUTER SCIENCE


ASSIGNMENT ON
Object Oriented Programming (CSC 231)

Date:____________________

Total Weight:- 20 %

Name __________________________________ID__________ Department ___________________


Section______________ Entry year _____________

GENERAL DIRECTIONS

1. Read the instructions carefully and do accordingly.


2. Submission deadline will decide by the instructor or the college.
3. The assignment should submit with a hard copy.
4. All students should collect the assignment at www.elearningportal.gagecollege.net by
follow the login steps.
5. Use of pencils and red pens are not allowed.
6. For further activities or questions each student can communicate the instructor through
email or telegram and other communication media.
7. Write your answers on the space provided at the end of all questions /or on a separate
sheet of paper/.

Good Luck !!!

RYTHM: Raise yourself To Help Mankind !!!

1
GAGE COLLEGE DEPARTMENT OF COMPUTER SCIENCE OBJECT ORIENTED
PROGRAMMING FINAL EXAM

Name: _______________________________________ID NO:_________ Dept & Sec:_________________

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.

Part two: Workout questions (10 pts.)

1. Compare and contrast constructor and methods (1pts)


2. Discuss about abstract class.(2 pts)
3. Discuss about object in object oriented programming and write the syntax to create objects.(2 pts)
4. Discuss the three types of access modifiers with examples by creating code fragment of a class
(2pts)
5. Write java program that can guess the date of birth. (3pts)

You might also like