0% found this document useful (0 votes)
14 views

Object Oriented Programming in C++

This describes about C++ programming

Uploaded by

Raj Ghimire
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Object Oriented Programming in C++

This describes about C++ programming

Uploaded by

Raj Ghimire
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

POKHARA UNIVERSITY

Level: Bachelor Semester: Spring Year : 2023


Programme: BE Full Marks: 100
Course: Object Oriented Programming in C++ Pass Marks: 45
Time : 3hrs.

Candidates are required to give their answers in their own words as far
as practicable.
The figures in the margin indicate full marks.
Attempt all the questions.

1. a) Explain non-linear behaviour of complexity. How is OOP different 7


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

You might also like