2069
Object Oriented Programming
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Long Questions:
Attempt any two questions: (2 × 10=20)
- Differentiate between structural programming approach and object oriented programming approach. Explain inheritance and polymorphism with example.
- How is a member function of a class defined? Define friend function. What are the merits and demerits of using friend function? Explain.
- Define constructor. List some of the special properties of the constructor functions.
Short Questions
Attempt any eight questions: (8 × 5=40)
- Explain the do| while structure.
- Explain the inline function with example.
- How is dynamic initialization of objects achieved?
- What are the importance of destructors?
- What is an operator function? Explain with syntax.
- Explain with example, how can you create space for array of objects using pointers?
- Explain the features of I/O system supported by C++.
- Differentiate between overloaded functions and function templates.
- What are the main advantages of using exception handling mechanism in a program?
- Differentiate between overloading and overriding.