0% found this document useful (0 votes)
433 views4 pages

OOPS With C++ Question Bank-2024-25[1]

The document is a question bank for the Object Oriented Programming with C++ course, covering various modules and topics relevant to the subject. It includes questions on concepts such as constructors, destructors, inheritance, polymorphism, exception handling, and file handling, along with examples and programming tasks. The questions are categorized by module and year, indicating their relevance for upcoming examinations.
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)
433 views4 pages

OOPS With C++ Question Bank-2024-25[1]

The document is a question bank for the Object Oriented Programming with C++ course, covering various modules and topics relevant to the subject. It includes questions on concepts such as constructors, destructors, inheritance, polymorphism, exception handling, and file handling, along with examples and programming tasks. The questions are categorized by module and year, indicating their relevance for upcoming examinations.
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/ 4

QUESTION BANK

SUBJECT: Object Oriented Programming with C++ SUBJECT CODE: BCS306B SEMESTER: III

MODULE-1
SL. QUESTIONS YEAR
NO.
1 What is object-oriented programming? Explain the structure of C++ Program.

2 What is Friend function? Explain with an example.

3 What are constructors and destructors? Explain the scope resolution operator with a Dec. 2023/Jan.2024
syntax.
4 How objects are passed to the functions, explain with an example?

5 Compare object-oriented programming with procedure-oriented programming concept.

6 Explain the following with an example:


• Scope resolution operator
• Friend function
June/July 2024
7 Explain with an example:
• Friend Class
• Static class members
8 What are constructors? Explain different types of constructors with an example.
9 Define constructor. List any 6 characteristics. Explain the concept with program.
10 Discuss the importance of class. With suitable example demonstrate the relationship
between class and objects. Supplementary
June/July 2024
11 Illustrate the process of passing objects of functions with example and explain.

MODULE-2
SL. QUESTIONS YEAR
NO.
1 Explain array of pointers to objects and accessing member functions using pointers. Dec. 2023/Jan.2024
2 Explain the following terms with an example:
• Pointers to class members.
• The this pointer
3 Write a C++ program to demonstrate function overloading for the add (int a, int b)
add (double a, double b)
4 Write the various function overloading used to "default function argument" and
"ambiguity".
5 Define Class and Object. Develop C++ program to find the largest of three
numbers.
6 Explain with example, copy constructors.
7 Demonstrate with an example of pointers to an object.
8 Implement C++ program to sort the elements in ascending and descending order. June/July 2024

9 Explain with example program for Function overloading.

10 Demonstrate the concept of this pointer with an example program.

11 What is pointer to an object? Demonstrate how to declare and use of pointers to an


object in C++.

12 Explain the following with example:


• Function overriding Supplementary
June/July 2024
• The "this" pointer.
13 Explain the concept of ambiguity in function overloading. How it can be resolved.

MODULE-3
SL. QUESTIONS YEAR
NO.
1 Explain with example, overloading of unary operator +
2 Discuss the overloading operator using keywords “new' and 'delete'.
3 What is Inheritance? Explain with an example of inheriting the multiple base Dec. 2023/Jan.2024
classes.
4 How multiple base classes are inherited using virtual base classes?
5 What is Operator overloading? Explain the overloading of unary operator with an June/July 2024
example program.
6 What is inheritance? Illustrate the different types of inheritance and syntax of
defining derived classes.
7 Write short notes on Granting Access.
8 Explain the concept of New and delete functions in overloading with an example.
9 Short notes on Destructors with an example.
10 Explain the use of "protected" members in inheritance with program. Supplementary
June/July 2024

MODULE-4
SL. QUESTIONS YEAR
NO.
1 Explain with example, virtual functions are hierarchical.
2 What is pure virtual function? Explain with example, generic function using
template.
Dec.
3 Explain the difference between Early and Late binding
2023/Jan.2024
4 Discuss the following terms:
(i)Using non-type arguments with generic classes.
(ii)Using default arguments with template classes.
5 What is polymorphism? How Early and Late Binding in polymorphism with an
example program.
6 Explain how virtual functions are hierarchical with suitable example program.
June/July 2024
7 Explain Generic functions with an example program.
8 Demonstrate concept of power of templates with an example program.
9 What are virtual functions? With program, explain how virtual attribute is
10 Define 'Pure virtual functions'. Differentiate 'Virtual functions and 'pure virtual
functions' with example.
11 Explain the differences between early binding and late binding. Supplementary
June/July 2024
12 Discuss the following:
• Use of templates in C++
• Type name and export keyword

MODULE-5
SL. QUESTIONS YEAR
NO.
1 Discuss fundamentals of exception handling with example Dec. 2023/Jan.2024
2 Discuss catching all exceptions and rethrowing an exception with examples.
3 Explain the following formatted 1/0:
(i) width( )
(ii) precision
(iii) fill( )
4 How file opening and closing is done? What are the functions required for reading
and writing data in a file. Explain with example.
5 Implement a C++ program to create a text file, check file created or not. If created it
will write some text into a file and then read the text from the file.
6 Develop a function which through a division by zero exception and catch it in catch
block, write a Ct+ program to demonstrate usage of try, catch and through to handle
exception.
June/July 2024
7 Write short notes on formatted I/0 functions.

8 Implement a C++ program to write and read time in/from binary file using fstream.

9 Develop a C++ program that handles array out of bounds exception using C++..
10 Write short notes on Derived Class exception with example
11 Explain the following:
i) Formatted 10 Supplementary
ii) File streams and string streams. June/July 2024

12 Discuss any 4 file handling methods.

Signature of the faculty


HoD

You might also like