0% found this document useful (0 votes)
16 views3 pages

Prelim OOP Question Bank

The document is a question bank for Object Oriented Programming at Amrutvahini College of Engineering, covering topics such as polymorphism, files and streams, exception handling, templates, and the Standard Template Library (STL). Each unit includes a series of questions designed to assess understanding and application of these concepts in C++. The questions range from definitions and explanations to practical programming tasks and comparisons of different programming techniques.

Uploaded by

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

Prelim OOP Question Bank

The document is a question bank for Object Oriented Programming at Amrutvahini College of Engineering, covering topics such as polymorphism, files and streams, exception handling, templates, and the Standard Template Library (STL). Each unit includes a series of questions designed to assess understanding and application of these concepts in C++. The questions range from definitions and explanations to practical programming tasks and comparisons of different programming techniques.

Uploaded by

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

AMRUTVAHINI COLLEGE OF ENGINEERING SANGAMNER

DEPARTMENT OF COMPUTER ENGINEERING


Question Bank
OBJECT ORIENTED PROGRAMMING

Unit-III Polymorphism

Sr. CO BL Questions
No

C210243.3: Use polymorphism and virtual functions to solve complex programming software.

1 3 2 What is Polymorphism? Explain various types of polymorphism


2 3 2 What is operator overloading? How to overload operators?
3 3 4 Differentiate between compile time and runtime polymorphism?
4 3 4 Write C++ program to overload + operator for concatenation of two strings
5 3 3 Explain unary and binary operator overloading? Which operators are not
overloaded in C++?
6 3 4 Explain function overloading with suitable example.
7 3 4 When do we overload the functions and when do we override? Justify your answer.
8 3 2 What is data conversion and type casting? Illustrate with example implicit and ex-
plicit data conversions
9 3 4 Illustrate with example data conversion between one user defined types to
other user defined data type.
10 3 3 What is pointer to base class? What is virtual function and its significance?
Explain.
11 3 4 What is abstract base class? How to create abstract base class? Write C++
program to create student as abstract base class and derive Engineering and
medical classes to implement it.
12 3 2 What is use of mutable and explicit keyword?
13 3 2 Explain virtual destructor with example.

Unit-IV Files and Streams

Sr. CO BL Questions
No

C210243.4: Illustrate use of files in development of object oriented software.

1 4 2 What is a Stream? explain types of Streams available in C++.


2 4 4 Write C++ program to illustrate concepts of stream errors.
3 4 4 Explain various ways to create and open a file? Write C++ program to open a
file, write data into a file, close the file. Again open file for reading and Read
data from file?
4 4 4 What is File and stream? Illustrate various file opening modes with proper syntax?
5 4 4 Write a C++ program using open(), eof() and getline() member function to
pen and read file contents line by line.
6 4 4 How to read and write class objects from file? Write C++ program to write
and read employee data in file.
7 4 3 What is file pointer? Explain File pointer manipulators seekg(), seekp(),
tellg() and tellp() with suitable example.
8 4 2 Explain Command line arguments in C++. Write program to explain the
same.
9 4 3 What are stream errors, flags for setting and getting an error.
10 4 3 Write a program to overload insertion (<<) and extraction(>>) operator in
C++

Unit-V Exception Handling and Templates

Sr. CO BL Questions
No

C210243.5: Analyze and Illustrate the strengths of object-oriented programming using exception
handling.

1 5 3 What is exception handling? Write a program in C++ to handle “divide by


zero” exception
2 5 3 How exception handling (try(),catch() and throw()) is achieved in C++?
Write C++ program to illustrate same.
3 5 2 How to handle multiple exceptions occurred in a program(hint: Multiple
catch)?
4 5 2 What do you mean by catch all and rethrowing exceptions.
5 5 4 How to create user defined exceptions? Create user defined exception to
check whether your employee exist in data structure and throw exception if
name is not in employee list. Use catch block to print appropriate message on
screen?
6 5 2 What is generic programming? How it is implemented in C++
7 5 2 Explain how exception is handled in a constructor and destructor with
example?
8 5 3 How to create function templates and class templates? How function
overloading and function templates related to each other. State valid example
to justify your answer
9 5 4 Why templates are useful in programming? Write C++ program to create a
function template for finding minimum value contained in an array.
10 5 3 How to create class template to perform sorting of integer and float elements.
11 5 2 How to overload function template? Explain with example.
12 5 3 Describe type template parameters and non-type template parameters with
example.
Unit-VI Standard Template Library

Sr. CO BL Questions
No

C210243.6: Develop the applications using object oriented programming templates.

1 6 3 What is STL? Why should a C++ programmer be interested in the STL?


What is design philosophy of STL?
2 6 2 What are the major components of STL? Explain.
3 6 2 Elaborate containers in STL with suitable examples.
4 6 3 Compare associative containers Vs Sequence Containers Vs Derived
containers with example of each.
5 6 4 Explain various types of container adapters? Write C++ program to
implement operation on stack by using same?
6 6 2 Use minimum 8 functions of vector STL. Write a program to explain the
same.
7 6 2 Use minimum 8 functions of Deque STL. Write a program to explain the
same.
8 6 3 Write a program to implement Map and set using STL.
9 6 4 Write C++ program to implement basic searching and sorting algorithms of
STL?
10 6 4 Write C++ program to implement heap sorting using STL?
11 6 4 Write C++ program to implement set operations using algorithms of STL?
12 6 4 Write C++ program to illustrate use of min-max algorithms of STL?
13 6 3 Why iterators are used in STL? Explain types of iterator?

You might also like