0% found this document useful (0 votes)
27 views2 pages

C++ OOP Question Papers for Students

The document contains two question papers on Object-Oriented Programming (C++) covering principles, constructors, and destructors. Each paper consists of multiple questions that require brief answers and programming demonstrations related to OOP concepts. The total marks for each paper are 30, with a time limit of 1 hour.

Uploaded by

yaxitprashant
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

C++ OOP Question Papers for Students

The document contains two question papers on Object-Oriented Programming (C++) covering principles, constructors, and destructors. Each paper consists of multiple questions that require brief answers and programming demonstrations related to OOP concepts. The total marks for each paper are 30, with a time limit of 1 hour.

Uploaded by

yaxitprashant
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

C++ Que Paper

**📘 OBJECT ORIENTED PROGRAMMING (C++) — Question Paper 1**

**Units Covered**: Unit 1 (Principles of OOP), Unit 2 (Constructors &


Destructors)
**Total Marks**: 30
**Time**: 1 Hour

**Q1. (2 marks × 4 = 8 marks)**


Answer the following questions briefly:

a) Define Encapsulation and give one real-life example.


b) Mention any two differences between POP and OOP.
c) What is a default constructor? Write its syntax.
d) What is the use of the destructor in a class?

**Q2. (4 marks × 4 = 16 marks)**


Answer any four of the following:

a) Explain Object and Class with suitable C++ code examples.


b) What is polymorphism? Differentiate between compile-time and
run-time polymorphism.
c) Explain Parameterized Constructors with an example.
d) What are the characteristics of OOP? Explain any four.
e) Define Constructor Overloading. Write a C++ program to
demonstrate it.

**Q3. (3 marks + 3 marks = 6 marks)**


a) Compare and contrast copy constructor and assignment operator.
b) Write a C++ program to demonstrate the use of a destructor.

**📘 OBJECT ORIENTED PROGRAMMING (C++) — Question Paper 2**

**Units Covered**: Unit 1 (Principles of OOP), Unit 2 (Constructors &


Destructors)
**Total Marks**: 30
**Time**: 1 Hour

**Q1. (2 marks × 4 = 8 marks)**


Answer the following in brief:

a) What is abstraction? How is it different from encapsulation?


b) Write any two benefits of OOP.
c) What is the significance of using `this` pointer in constructors?
d) Mention the syntax to create a copy constructor.
**Q2. (4 marks × 4 = 16 marks)**
Answer any four of the following:

a) Explain inheritance along with the concept of base and derived


class.
b) Write a C++ program to show the use of a parameterized
constructor.
c) What are the rules and characteristics of constructors in C++?
d) What are the features of object-oriented programming? Explain
with a diagram.
e) Write a constructor for a class named `Student` that initializes roll
number and name.

**Q3. (3 marks + 3 marks = 6 marks)**


a) State any three differences between constructor and destructor.
b) Write a simple C++ program demonstrating constructor
overloading.

You might also like