RTU Previous Question Papers BE IT 4th Semester Object Oriented Programming July-2011

RTU Previous Question Papers BE IT 4th Semester

Object Oriented Programming July-2011


1.  (a) What is object oriented programming ? Explain the features of OOP.

(b) Write short notes on :

(i) Parallel Computing

(ii) Dynamic programming.


1. Write short notes on :

(i)  Structured Programming

(ii) Event Driven Programming

(iii) Logic Programming

(iv) Aspect-Oriented Programming.


2. (a) What are Constructor and Destructor ? Explain various types of constructors. Is it mandatory to use constructor in a class ? Justify it.

(b) What is inheritance ? What are the different forms of Inheritance ? Give an example of each.

Distinguish between following terms :

(a) Object and class

(b) Data abstraction and data encapsulation

(c) Inheritance and Polymorphism

(d) Static binding and late binding.

3 .(a) Describe operator overloading. List the operators which cannot be .overloaded. Create a class to perform matrix addition using operator overloading.

(b) What is friend function ? Write a program to swap private data of classes.


3 (a) What is runtime polymorphism ? Explain how C++ handles runtime polymorphism ?

(b) What is a class template ? Explain the syntax of a class template with suitable examples.

(c) What are exceptions ? How does C++’s throwing and catching exceptions ?

(d) What is Namespace ? How do we access the variables declared in a named namespace ? Give an example.


4. Define and explain following :

(i)  Java Byte code and JVM,

(ii) Features of Java

(iii) Nested and inner classes

(iv) Use of final and super keywords.


4 (a) What are the various access specifiers used in Java ? Explain their visibility.

(b) What are abstract classes ? Write a program in Java having student as an abstract class and create many derived classes such as Engineering, Science, Medical, etc. from the student class. Create their objects and process them.



5. Define and explain following :

(i)  Interface vs abstract class

(ii) String and string buffer class

(iii) applet life cycle



5.  (a) Write an applet to draw circle inside a square.

(b) Write a program in Java to sort an array of strings.


Leave a Comment