0% found this document useful (0 votes)
4 views2 pages

Questionbank Mid2 CPP

This document is a question bank for a mid-term examination at the Universal College of Engineering & Technology, focusing on Object-Oriented Programming (OOP) concepts in C++. It covers topics such as inheritance, pointers, generic programming, exception handling, and the Standard Template Library (STL). Each unit includes theoretical questions and programming tasks to assess understanding of the material.

Uploaded by

ranganadh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Questionbank Mid2 CPP

This document is a question bank for a mid-term examination at the Universal College of Engineering & Technology, focusing on Object-Oriented Programming (OOP) concepts in C++. It covers topics such as inheritance, pointers, generic programming, exception handling, and the Standard Template Library (STL). Each unit includes theoretical questions and programming tasks to assess understanding of the material.

Uploaded by

ranganadh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIVERSAL COLLEGE OF ENGINEERING & TECHNOLOGY

Dokiparru (V), Medikondur (M), Guntur – 522 438

OOPS Question Bank For Mid II


UNIT – III

1. a). What do you mean by Inheritance.


b). Explain the advantages and disadvantages of inheritance.

2. a). Write a program on MultiLevel Inheritance.


b). Explain the Virtual Base Classes with an example.

UNIT - IV

1. a). Define Pointer. How to declare, initialize and access pointers in


C++.
b). Explain the Features of Pointers.

2. a). Write a C++ program to demonstrate pointers to base and


derived classes.
b). Discuss about virtual functions with a C++ example.

3. a). Explain the Pure Virtual Functions with an Example.


b). Explain the Wild Pointers with an Example.

4. a). Explain pointer to class with an example.


b). Explain this pointer with an example.
UNIT –IV
1. a). What is generic programming? Explain in detail about Normal
function templates
b). Write and explain the procedure to catch multiple exceptions
thrown from a single try block.
2. a). Write a C++ program that implements Bubble Sort using
function templates.
b). List the keywords used in exception handling along with their
purpose.
3. a). Explain what is Exception Handling and its principles.
b). Write a program to create square() function using templates.
4. a). What is a template function? How to overload template
functions in C++?
b). Explain the difference between templates and macros.
UNIT – V

1. a). What is STL? Explain its sub-divisions.


b). Write any four functions of the List.

2. a). Write a function template for finding the minimum value in an array.

b). Explain about different types of containers. Write a C++ program that erases all
elements in a list using iterators.
3. a). What is Vector. List out any 5 functions with examples.

b). What is Map. List out any 5 functions. Write a program on Map operations.

4. . What do you mean by

a). Algorithms. b). Iterators.

You might also like