q
q
|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 2
UNIT-I
1 a) Compare and Contrast C and C++ programming languages. [7M]
b) Explain about Data Abstraction with any three examples. [7M]
OR
2 a) How does OOP overcome the shortcomings of traditional programming [7M]
approaches?
b) Explain about Polymorphism and its significance with an example. [7M]
UNIT-II
3 a) Explain the different Access Control Specifiers available in C++ and their roles [7M]
in inheritance.
b) What is the real use of Method overloading? Explain with a sample C++ [7M]
program.
OR
4 a) How to Declare and Define a friend function in C++? Explain with a sample [7M]
code.
b) Explain the features of Friend functions and Friend Classes in C++. [7M]
UNIT-III
5 a) Discuss the different types of Inheritance supported by C++ and explain how it [10M]
encourages Code Reusability.
b) How t use an object as a class member? Illustrate. [4M]
OR
6 a) Develop a C++ program to create an object of a class inside another class [7M]
declaration.
b) In C++, can pure abstract classes have data members and can an object be [7M]
created from them? Give justification to your answer with proper explanation.
UNIT-IV
7 a) How are Pointer variables different from normal variables? Explain the steps to [7M]
access an object in C++ using Pointers.
b) What is meant by function binding in programming? Explain about Early and [7M]
Late binding in C++.
OR
1 of 2
|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 2
2 of 2
|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 3
OR
2 a) Briefly discuss the limitations of Conventional programming paradigms. [7M]
b) Write any two benefits of Code reusability and explain how it can be [7M]
implemented in C++.
UNIT-II
3 a) What are the special characteristics of Constructors? Explain with a C++ [7M]
program.
b) Describe the properties of Anonymous Objects and explain how to call member [7M]
functions with an Anonymous Object.
OR
4 a) Which OOP principle implements function overloading? Explain with a C++ [7M]
program.
b) Explain the usage of Scope Resolution operator with a C++ program. [7M]
UNIT-III
5 a) Explain various types of Inheritance supported by C++ with a program. [10M]
b) What are Abstract classes? Give their significance. Can they be inherited? [4M]
Justify.
OR
6 a) Explain the syntax and rules for overloading Operators in C++. [7M]
b) What is the need for Virtual Base Class in C++? How to declare Virtual Base [7M]
Class in C++? Explain.
UNIT-IV
7 a) What is a Class pointer? What is the size of an object pointer? Give explanation. [7M]
b) Explain the purpose of Virtual destructors in C++ with a sample program. [7M]
OR
1 of 2
|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 3
8 What are the benefits of Polymorphism in C++? Explain the different forms of [14M]
Polymorphism and their implementation details with a C++ program.
UNIT-V
9 a) What are the advantages and disadvantages of Templates in C++? Give the [7M]
syntax to write Class and Function Templates in C++
b) Discuss various types of Containers in STL. [7M]
OR
10 a) Explain the concept of rethrowing exceptions in C++ with an example program [7M]
b) With a C++ program, explain the usage of various operators used in C++ [7M]
Macros.
2 of 2
|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 4
OR
2 a) How is Data Abstraction implemented in C++? Explain with an example. [7M]
b) Explain about Objects, Classes and Methods in OOP. [7M]
UNIT-II
3 a) What is the main purpose of Constructors? How to invoke a constructor in C++? [7M]
Explain.
b) How to define Member Functions of Nested Class outside the enclosing Class? [7M]
Explain with a C++ program
OR
4 a) When should we use Friend functions in C++? Explain with a program. [7M]
b) Discuss the characteristics of Destructor in C++ programming? Is it possible to [7M]
invoke a Destructor in C++ explicitly? Give explanation.
UNIT-III
5 Write a C++ program to illustrate the importance of overloading Binary operator [14M]
‘+’ for adding two complex numbers.
OR
6 a) Explain various forms of inheritance supported by C++. [7M]
b) Write short notes on [7M]
i)Abstract Classes ii)Virtual Base Classes
UNIT-IV
7 a) How Runtime Polymorphism is implemented in C++? [7M]
b) Write a C++ program to illustrate the importance of ‘this’ pointer. [7M]
OR
8 a) Explain the syntax to declare, initialize and access pointers in C++. [7M]
b) What is Polymorphism and how it is achieved in C++? [7M]
1 of 2
|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 4
UNIT-V
9 a) Explain the hierarchy of execution of multiple catch blocks in C++ with a [7M]
program.
b) What is Function template? Can a class member function template be virtual? [7M]
Explain.
OR
10 Develop a C++ program to implement Singly Linked List using Templates. [14M]
2 of 2
|'''|'|'|''||'''||||