OBJECT ORIENTED PROGRAMMING B.Tech 4th Semester 2005

4th Semester (CS 252) DEC 2006
OBJECT ORIENTED PROGRAMMING
Max Marks 60
Max Time 3 Hours

Instructions to Candidate:
(1) Section A is compulsory
(2) Attempt any 2 questions from section B
(3) Attempt any 2 questions from section C

Section A
I (10 * 2=20)


1. What is a manipulator? Why do we need it?
2. What is the advantage of using streams for I/O operations in C++?
3. What is name mangling?
4. What is the difference between by passing argument by value to that of reference?
5. What is the advantage of contiguous memory allocation in arrays?
6. I a and b are tow arrays of the same type, can the statement a=b work?
7. How is structure passed to a function?
8. How is memory allocated to structure variables?
9. What is null pointer?
10. Can we write a[i] as i[a]?

Section B (5 * 4=20)


II Explain the following with examples:

1. setbase
2. setfill().

III What is the difference between actual and formal arguments? Explain the relationship between them.
IV What is an array of characters? Where are they used?
V What is a structure? How can the structure be nested?

Section C (10 * 2=20)

VI What is void* pointer? What is its use?
VII What is operator overloading? Explain binary operator overloading.
VIII What is inheritance? How it is implemented? Distinguish between public and private inheritance.
IX What are virtual functions and pure virtual functions? Where are they used. Explain.

Post a Comment

Previous Post Next Post