Saturday, April 10, 2010

MDU question paper for CSE

B.E. 4th sem. (I.T.) Examination, May-2009

OBJECT ORIENTED PROGRAMMING USING C++

PAPER-IT-202-E

TIME ALLOWED: 3 HOURS MAXIMUN MARKS 100

NOTE: Attempt any five question .All question carry equal marks.

1. (a) What are the basic features of OOPs ? 10

(b) How does C++ structure differ from a C++ class ? 10

2. (a) What is constructor ? What do you mean by dynamic initialization of object ? Give example. 10

(b) Expalin the difference between inline function and friend function with the help of example. 10

3. (a) What do mean by overloading of operator ? What are the rules that govern operator overloading ? 10

(b) Write a program to overload the unary operator. 10

4. (a) What is the usefulness of inheritance ? What are the various type of inheritance ? 10

(b) What is the difference between private, public and protected inheritance? 10

5 (a) What do mean by compile time polymorphism and run time polymorphism ? 10

(b) Distinguish between the virtual function and pure virtual function. Give example. 10

6. (a) How can we create a sequential access file? 8

(b) Write a program to copy the contets of one file to another file byte byte. 12

7. (a) What do u mean by template ? Write a program to demonstrate function template. 10

(b) What is an exception ? Give some reasons that causes exception. 10

8. Write short note on following :

(a) Function overloading 6

(b) Class template 8

(c) File handling in C++ 6

No comments:

Post a Comment