Elective Object Oriented Programming in C++

Object Oriented Programming in C++ old question papers

Pick a year on the left to see the full paper, exactly as it was set.

6 questionsSit this paper (timed)

Pokhara University

Bachelor of Engineering in Computer Engineering

Semester 2 · PU Spring 2023

Course Title: Object Oriented Programming in C++

Full Marks: 100Pass Marks: 45Time: 3hrs.

Candidates are required to give their answers in their own words as far as practicable.

  1. 1.
    • a) Explain non-linear behaviour of complexity. How is OOP different from POP? Explain with examples.
    • b) What are the different ways of defining member functions? Explain g with suitable examples.
    7
  2. 2.
    • a) What are the advantages of class over structure? Briefly explain the components of a class with program structure in C++.
    • b) Define constructor with its characteristics. WAP to find area of circle and rectangle using the concept of constructor overloading.
    15
  3. 3.
    • a) Inheritance enhances reusability. Elaborate this using an example of = multilevel inheritance.
    • b) What is abstract class and pure virtual function? How can you g implement run time polymorphism? Explain with example program.
    7
  4. 4.
    • a) What is polymorphism? Explain compile time and runtime polymorphism with suitable examples.
    • b) Explain the concept of user defined to user defined data conversion.
    15
  5. 5.
    • a) Why is generic programming beneficial? Explain template function with simple program.
    • b) What is exception handling? How do you handle exception in C++? Explain with a simple program.
    15
  6. 6.
    • a) Describe components of CRC card and its importance in design.
    • b) What is sequence diagram? Explain with an example. 9.
    • a) Memory allocation and recovery
    • b) Principle of substitutability
    • c) Concept of composition 1
    11

— The End —