Bsc Csit Nepal

2069

Object Oriented Programming

Full Marks: 60
Pass Marks: 24
Time: 3 hours

Long Questions:

Attempt any two questions: (2 × 10=20)

  1. Differentiate between structural programming approach and object oriented programming approach. Explain inheritance and polymorphism with example.
  2. How is a member function of a class defined? Define friend function. What are the merits and demerits of using friend function? Explain.
  3. Define constructor. List some of the special properties of the constructor functions.

Short Questions

Attempt any eight questions: (8 × 5=40)

  1. Explain the do| while structure.
  2. Explain the inline function with example.
  3. How is dynamic initialization of objects achieved?
  4. What are the importance of destructors?
  5. What is an operator function? Explain with syntax.
  6. Explain with example, how can you create space for array of objects using pointers?
  7. Explain the features of I/O system supported by C++.
  8. Differentiate between overloaded functions and function templates.
  9. What are the main advantages of using exception handling mechanism in a program?
  10. Differentiate between overloading and overriding.