QB - Object Oriented Programming Using C++-1
QB - Object Oriented Programming Using C++-1
UNIT-1
S.No Questions L CO PO
Part – A (Short Answer Questions)
1 What is an object and class? L2 CO1 PO1
2 Explain the structure of C++ Program with an example L1 CO1 PO1
3 Define Operators, Evaluation of expressions L2 CO1 PO1
4 Define abstraction, encapsulation with syntax L2 CO1 PO1
5 Define inheritance and polymorphism. L3 CO1 PO2
6 What is recursion? Explain recursive with an example L3 CO1 PO2
S.No Questions L CO PO
Part – A (Short Answer Questions)
1 How to create classes and objects in C++ with example. L2 CO2 PO2
2 Difference between static data member and static member L1 CO2 PO1
functions.
3 Explain about static keyword? L3 CO2 PO2
4 Write the structure of class L3 CO2 PO2
5 Explain the concept of Data abstraction. L2 CO2 PO3
6 What is copy constructor, explain with example L2 CO2 PO1
7 Explain Constructor with syntax. L1 CO2 PO1
8 What are destructors? When they are called? What is their utility? L3 CO2 PO2
UNIT-3
S.No Questions L CO PO
Part – A (Short Answer Questions)
1 Define the Base and Derived classes L1 CO3 PO1
b) Differentiate between virtual function and virtual class. Also L3 CO3 PO3
explain the rules for virtual function
12 a) Describe the three different inheritance behaviors achieved L3 CO3 PO2
through the use of pure virtual, ordinary virtual and non virtual
functions?
13 a) What is inheritance? How does it enable code reusability, explain L3 CO3 PO2
with an example?
b) Explain the different types of inheritances used in C++ L3 CO3 PO2
14 a) Write a program to define virtual, non virtual functions and L2 CO3 PO2
determine size of the object
b) What are virtual functions? Describe the rules for declaring L2 CO3 PO2
virtual functions?
15 a) What is polymorphism in C++. Explain about its types with L2 CO3 PO2
example
16 a) Write a C++ program to read the data of N employee L3 CO3 PO2
and compute Net salary of each employee (DA=52% of
Basic and Income Tax (IT) =30% of the gross salary).
b) Write a program to destroy the constructor. L3 CO3 PO2
UNIT-4
C++ I/O
S.No Questions L CO PO
Part – A (Short Answer Questions)
1 Definte Overloading operators L1 CO4 PO1
2 Explain I/O using C functions L2 CO4 PO2
3 Explain Stream classes hierarchy L2 CO4 PO2
4 Define Stream I/O L2 CO4 PO2
5 Define File streams and list out them L2 CO4 PO3
6 Define String streams L1 CO4 PO2
7 Define functions of ios class L2 CO4 PO2
8 Define few special manipulator functions used to perform L2 CO4 PO2
formatted IO in C++
9 Define few error handling functions L1 CO4 PO1
10 What are the several special functions that are used to perform L2 CO4 PO2
formmated IO operations located in iomanip.h headerfile.
Part – B (Long Answer Questions)
11 a) Explain File streams in C++ L2 CO4 PO2
b) Explain String streams with example L1 CO4 PO2
13 a) Why we use getline() and write () functions, explain with L2 CO4 PO2
example
b) Error handling during file operations with example L2 CO4 PO3
UNIT-5
Exception Handling
PART- A (SHORT ANSWER QUESTIONS)
S.No Questions L CO PO
Part – A (Short Answer Questions)
1 What do you mean by exception handling. L2 CO5 PO2
2 Discuss the benefits of exception handling. L2 CO5 PO2
3 Explain about rethrowing an exception. L1 CO5 PO3
4 Describe the role of keywords try, throw and catch in exception L1 CO5 PO2
handling.
5 What do you mean by stack unwinding. L2 CO5 PO2
6 Discuss about exception objects. L1 CO5 PO2
7 What is rethrowing an exception L2 CO5 PO2
8 how exceptions are handled in C++ L2 CO5 PO1
9 Explain multiple catch handlers. L2 CO5 PO2
10 Explain few C++ Standard Exceptions L3 CO5 PO2
Part – B (Long Answer Questions)
11 a) Explain C++ Standard Exceptions and describe them L2 CO5 PO3
b) Write a C++ to illustrate the concepts of console I/O operations. L2 CO5 PO2
16 a) What is mean by Catching all the exceptions in C++, explain L1 CO5 PO2
with example