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

C++ Previous Question Papers

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

C++ Previous Question Papers

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

Code No: R2021051 R20 SET - 1

II B. Tech I Semester Regular/Supplementary Examinations, December-2023


OBJECT ORIENTED PROGRAMMING THROUGH C++
(Com to CSE, IT)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
UNIT-I
1 Explain in detail the features of Object Oriented Programming paradigm with [14M]
suitable examples.
OR
2 a) Write any four significant differences between C and C++. [7M]
b) What are Objects and Classes in Object Oriented Programming? Explain. [7M]
UNIT-II
3 a) What is a Destructor? Why it is needed? When is a Destructor invoked? [7M]
b) Describe the use of Friend functions with an appropriate C++ program. [7M]
OR
4 a) What is a Constructor? Explain various forms of Constructors with suitable [7M]
example.
b) Write a C++ program to demonstrate the significance of Nested classes. [7M]
UNIT-III
5 Develop a C++ program to overload the Binary operator ‘+’ to concatenate two [14M]
strings.
OR
6 a) Why do we need an Abstract Class in C++? Explain the features of Abstract [7M]
Classes with a C++ program.
b) Explain the implementation of Multiple and Multilevel Inheritance in C++. [7M]
UNIT-IV
7 a) With a C++ program, explain how a Base Class pointer pointing to Derived [10M]
Class object.
b) Specify the rules for defining Virtual functions in C++. [4M]
OR
8 How are Static and Dynamic Binding implemented in C++? Explain with a [14M]
program and discuss their advantages and disadvantages.
UNIT-V
9 a) Explain various keywords related to C++ Exception handling with a program. [7M]
b) Differentiate between Templates and Macros in C++. [7M]
OR
10 a) Develop a C++ program to implement Bubble sort using Function Templates. [7M]
b) Explain in detail about Iterators in C++. [7M]
1 of 1

|'''|'|'|''||'''||||
Code No: R2021051 R20 SET - 1

II B. Tech I Semester Supplementary Examinations, July - 2023


OBJECT ORIENTED PROGRAMMING THROUGH C++
(Com to CSE, IT)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions, each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
UNIT-I
1 a) List the drawbacks of conventional programming. Explain how object oriented [7M]
programming overcome them.
b) Mention the similarities and differences between C and C++ [7M]
Or
2 a) Explain the key concepts of Object Oriented Programming. [7M]
b) Briefly write about the evolution of C++. [7M]
UNIT-II
3 a) How will you destroy the objects initialized by the constructor in the program? [7M]
b) Write a C++ program, which illustrates the concept of Nested class. [7M]
Or
4 a) What is the use of a constructor? Explain default, parameterized and copy [7M]
constructors with suitable examples.
b) Write a C++ program illustrating Exception overloading. [7M]
UNIT-III
5 Describe the three different inheritance behaviors achieved through the use of [14 M]
pure virtual, ordinary virtual and non-virtual functions.
Or
6 a) Differentiate between hierarchical inheritance and hybrid inheritance with an [7M]
example.
b) What is a virtual base class? Why it is important to make a class virtual? [7M]
UNIT-IV
7 a) What is polymorphism? How it is achieved at compile time and runtime? [7M]
Explain both with the help of example.
b) Discuss in detail about virtual destructors. [7M]
Or
8 a) Write a C++ program that declare and use pointer to an object. [7M]
b) Describe the mechanism of creating virtual functions in C++ with an example. [7M]
UNIT-V
9 a) Explain the components of Standard Template Library (STL). [7M]
b) Write a C++ program that fills a vector with random numbers. [7M]
Or
10 a) Write a C++ program that erases all elements in a list using iterators. [7M]
b) Explain about different types of containers. [7M]
1 of 1
|''|''|||''|'''|||'|
Code No: R2021051 R20 SET - 1

II B. Tech I Semester Regular/Supplementary Examinations, January-2023


OBJECT ORIENTED PROGRAMMING THROUGH C++
(Com to CSE, IT)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~

UNIT-I
1 a) Compare structured programming and object oriented programming paradigm. [7M]
b) What are the key concepts are of object oriented programming. Explain in detail. [7M]

OR
2 a) What is the need of data types in C++? Describe different data types along with [7M]
their representations and size in C++.
b) Explain the advantages of object oriented programming. [7M]

UNIT-II
3 a) What are objects and how they are created from class? Explain with a C++ [7M]
program.
b) In which order the constructors and destructors are executed? Explain with an [7M]
example.
OR
4 a) What are the different ways to define member functions of a class? What is the [7M]
role of scope resolution operator in the definition of member function?
b) Why do we need Nested classes in C++ programming? Write a C++ program to [7M]
demonstrate the necessity of nested classes.
UNIT-III
5 a) Write a C++ program to illustrate the importance of overloading Binary operator [7M]
‘+’ for adding two complex numbers.
b) Why do we use virtual base class in C++? Give explanation with an example. [7M]

OR
6 a) Give the rules for operator overloading. Discuss an example. [7M]
b) What is the significance of inheritance? Explain various types of inheritance [7M]
with suitable example.

1 of 2

|'''|'|'|''|''||'|||
Code No: R2021051 R20 SET - 1

UNIT-IV
7 a) Define Pointer. How to declare, initialize and access pointers in C++? Explain. [7M]
b) What is Function template? Can a class member function template be virtual? [7M]
Explain
OR
8 a) How do you declare a pointer to an object in C++? Explain with an example [7M]
program.
b) Explain the purpose of Virtual destructors in C++ with a sample program. [7M]

UNIT-V
9 a) Explain in detail about the four important components of C++ Standard [7M]
Template Library.
b) Write a C++ program to insert elements into a list. [7M]

OR
10 a) How are templates different from macros? Explain. [7M]
b) How many associative containers are provided by C++? Explain. [7M]

2 of 2

|'''|'|'|''|''||'|||
Code No: R2021051 R20 SET - 1

II B. Tech I Semester Supplementary Examinations, July - 2022


OBJECT ORIENTED PROGRAMMING THROUGH C++
(Com to CSE, IT)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1 a) Explain the principles of Object Oriented Programming. [7M]
b) Give the structure of a C++ Program. [7M]
Or
2 a) How data and functions are organized in Object Oriented Program? Explain with [7M]
an example.
b) Compare the features of C programming language to that of C++ programming [7M]
language.

3 a) What is the difference be inline member function and volatile member function? [7M]
Give examples.
b) Write a C++ program to overload area () function to calculate area of shapes like [7M]
triangle, square, circle.
Or
4 a) What are the methods used to pass an argument to a function? Explain with [7M]
Examples.
b) Write a C++ program to declare object and display their contents. [7M]

5 a) Give the rules for operator overloading. Discuss an example. [7M]


b) Describe the concept of Volatile member function. [7M]
Or
6 a) Write a C++ program to implement multiple inheritances with public access [7M]
specific.
b) Write about C++ Operator Overloading working example. [7M]

7 a) How virtual functions can be used to implement runtime polymorphism? [7M]


Describe.
b) With an example explain how late binding can be achieved in C++. [7M]
Or
8 a) What is virtual base class? Write a C++ program illustrating virtual base [7M]
Classes?
b) What are virtual functions? Describe the rules for declaring virtual functions. [7M]

9 a) Explain different ways of initializing a vector with programming examples. [7M]


b) Write a C++ program to insert elements into a map. [7M]
Or
10 a) Write a function template for finding the minimum value in an array. [7M]
b) Write a C++ program to insert elements into a list. [7M]

1 of 1
|''|''|||''|'''|||'|

You might also like