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

QB - Object Oriented Programming Using C++-1

Uploaded by

Neha Hallikeri
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

QB - Object Oriented Programming Using C++-1

Uploaded by

Neha Hallikeri
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Unit wise Question Bank

UNIT-1

Object-Oriented Thinking and C++ Basics

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

7 Define pointer with the example. L2 CO1 PO2


8 Define inline function with example. L2 CO1 PO1
9 What are the disadvantages of procedural programming L2 CO1 PO2
10 Define Preprocessor directives with example. L3 CO1 PO1
Part – B (Long Answer Questions)
11 a) Describe the object oriented programming features of C++? L3 CO1 PO2
b) Write a C++ program to generate Fibonacci series using L2 CO1 PO2
recursion with memberfunction
12 a) Explain types of program flow statements in C++? L4 CO1 PO2
b) Define inheritance and explain it with example. L3 CO1 PO3
13 a) Write a program to exchange values between two classes using L3 CO1 PO2
friend classes
b) Distinguish between call by value and call by address with an L2 CO1 PO2
example
14 a) Differentiate between Structures and class? Give an example of L3 CO1 PO2
each?
b) Explain the different types of data types used in C++ with L3 CO1 PO3
example.
15 a) What is Operator overloading? Write a C++ program illustrating L2 CO1 PO2
overloadingNEW and DELETE operators?
b) Define array and explain about types of arrays in C++ with L3 CO1 PO2
example.
16 a) Write a C++ program using Switch case. L2 CO1 PO2
b) Explain about the various types of access specifiers are used in L2 CO1 PO2
C++
UNIT-2

C++ Classes and Data Abstraction

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

9 What is mean by implicit and explicit constructors L3 CO2 PO2


10 Define constant function. L2 CO2 PO3
Part – B (Long Answer Questions)
11 a) What is Constructors? How many types of constructors are there? L3 CO2 PO2
12 a) Write a C++ program to calculate simple interest and compound L3 CO2 PO2
interest
b) Explain the concept of Data abstraction with example L3 CO2 PO2
13 a) Write a C++ program to display names, rollnos and grades of 3 L2 CO2 PO2
students whohave appeared in the examination. Declare the class
of name, rollnos and grade. Create an array of class objects.
Read and display the contents of the array
b) Explain Constant member functions with example L3 CO2 PO3
14 a) Explain Static class members with example L3 CO2 PO2
b) Write a C++ program to implement static keyword and explain L2 CO2 PO1
15 a) What is a Friend class, explain with example. L3 CO2 PO2
b) Write a C++ program to find Armstrong number L2 CO2 PO2
16 a) Explain about the various types of access specifiers are used in L2 CO2 PO3
C++, explain with examples.

UNIT-3

Inheritance & Virtual Functions and Polymorphism

S.No Questions L CO PO
Part – A (Short Answer Questions)
1 Define the Base and Derived classes L1 CO3 PO1

2 Define Virtual base class. L1 CO3 PO2


3 What are destructors? When they are called? L2 CO3 PO2
4 Differentiate between multilevel and hybrid inheritance L2 CO3 PO2
5 What are the rules for virtual functions L2 CO3 PO2
6 Define the Base and Derived classes L2 CO3 PO2
7 Defining a class hierarchy. L2 CO3 PO1
8 Write the significance of pure virtual functions in C++? L2 CO3 PO2
9 Define Abstract classes. L3 CO3 PO2
10 Write a note on virtual destructors. L3 CO3 PO3
Part – B (Long Answer Questions)
11 a) Explain in detail about the static and dynamic binding. L3 CO3 PO2

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

12 a) Explain Stream classes hierarchy with example L2 CO4 PO2

b) Explain I/O using C functions with example L2 CO4 PO3

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

14 Formatted IO using ios class members with example L1 CO4 PO2

15 Formatted IO using manipulators with example L1 CO4 PO2

16 a) Explain Operators Overloading in C++ with example L1 CO4 PO2


b) Write a C++ to illustrate the concepts of console I/O operations.

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

12 a) Explain Catching Exceptions with example L1 CO5 PO2


b) Write a program to solve sum of individual digits. L2 CO5 PO2
13 a) Explain Rethrowing Exceptions with example L1 CO5 PO2
b) Write a program to find Fibonacci series L3 CO5 PO2
14 a) Explain Exception specifications with explain L2 CO5 PO1
15 a) Explain Exception Objects with example L1 CO5 PO2

16 a) What is mean by Catching all the exceptions in C++, explain L1 CO5 PO2
with example

(L1 – Remembering; L2 – Understanding; L3 – Applying;L4 – Analyzing; L5 – Evaluating; L6 –


Creating)

Course Outcomes (CO) Program


Outcomes (PO)

You might also like