Object Oriented Programmingthrough C++ March 2021
Object Oriented Programmingthrough C++ March 2021
1 a) What are the drawbacks of procedural languages? Explain the need of Object- 8M
Oriented programming with a suitable example.
b) Describe the features of Object-Oriented Programming. 7M
Or
2 a) Write the most significant differences between C and C++. 5M
b) Explain in detail the four major principles of Object-Oriented Programming 10M
paradigm with suitable examples.
3 a) What are objects and how they are created from Class? Explain with a sample 8M
program.
b) Explain about the different mechanisms in C++ to protect the members of an 7M
object.
Or
4 a) What is a Constructor? What is the main purpose of Constructors? How to 10M
invoke a constructor in C++? Explain.
b) Explain the principles and benefits of method overloading in C++ programming. 5M
5 a) What is the significance of inheritance? Explain various types of inheritance 15M
with suitable example for each.
Or
6 a) Why do we use virtual base class in C++? Give explanation. 5M
b) Write a C++ program to illustrate the importance of overloading Binary operator 10M
‘+’ for adding two complex numbers.
7 a) What is meant by Dynamic binding? And also Explain its implementation in 15M
C++ with a sample program.
Or
8 a) Define Pointer. How to declare, initialize and access pointers in C++? Explain. 8M
b) Write the differences between virtual and pure virtual functions in C++. 7M
9 a) What is Exception Handling? Explain various keywords involved in C++ 8M
exception handling.
b) Write a C++ program to sort an unordered list of elements using function 7M
templates.
Or
10 a) Explain in detail about the four important components of C++ Standard 15M
Template Library.
1 of 1
||''|''||''||''''''|
Code No: R1921055 R19 SET - 2
||''|''||''||''''''|
Code No: R1921055 R19 SET - 31
Or
2 a) Write the differences between C and C++ programming. 8M
b) What is Data Abstraction and Encapsulation in C++? Explain with a real time 7M
example.
3 a) Explain about access specifiers in C++ programming. 8M
b) What is a constructor? Explain various forms of constructors with suitable 7M
example.
Or
4 a) What are the benefits of Method overloading in programming? Explain the 10M
concept of Method overloading with a C++ program.
b) Is it possible to call destructor explicitly in C++? Give explanation with a 5M
sample code.
5 a) What is inheritance? List the different types of inheritance and explain how it 15M
encourages reusability and sharing?
Or
6 a) What are Virtual classes? Explain the need for Virtual classes with a suitable 8M
example.
b) Write the rules of overloading operators in C++. 7M
7 a) Why Polymorphism is needed in programming? Explain about the types of 15M
polymorphism with necessary example C++ programs.
Or
8 a) What is a class pointer? What is the size of an object pointer? Give explanation. 8M
b) Explain about virtual functions in C++ with a program. 7M
9 a) Write about Exception handling in C++ with an example program. 8M
b) Explain the concept of ret rowing exceptions in C++. 7M
Or
10 a) Differentiate between templates and macros. 5M
b) With an example, explain various types of container classes in C++. 10M
1 of 1
||''|''||''||''''''|
Code No: R1921055 R19 SET - 4
Or
8 a) What is meant by function binding in programming? Explain about Early and 8M
Late binding in C++.
b) Why do we need Virtual destructors in C++? Explain. 7M
9 a) What do you mean by an Exception and Error? Explain about the keywords 8M
related to exception handling in C++.
b) How to define User-defined Exceptions in C++? Explain with a sample code 7M
snippet.
Or
10 How many associative containers are provided by C++? Explain. 15M
1 of 1
||''|''||''||''''''|