Skip to content

BCS306B · 2022 · CSE · Semester 3

Object Oriented Programming with C++

Back to subjects

Automated PYQ shortlist · Academic review pending. Questions are displayed from OCR. Some formulas and figures may need review.

Review status & sources

Similar question wording is grouped and ranked by the number of distinct exam sessions. Groups with the same count are ordered by their extracted text. Some subjects have only one session. Paper references show the PDF page and extracted question number when available.

Module 1

Explain with an example: i) Friend Class ii) Static class members What are constructors? Explain different types of constructors with an example.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 1 · Q2

Demonstrate with example, how friend functions, friend classes and inline functions are useful in C++

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q1b

Discuss the importance of class. With suitable example demonstrate the relationship between class and objects. Illustrate the process of passing objects of functions with example and explain.

1 exam session
  • June-July-2024 · PDF page 1 · Q2
Show 2 Backup Questions

List the various access specifiers supported by OOPs. Illustrate their use

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q2a

What is meant by constructor? Discuss the types of constructors in C++ with example.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q1a

Module 2

Define Class and Object. Develop C++ program to find the largest of three numbers.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 1 · Q3

Demonstrate the concept of this pointer with an example program.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 1 · Q4c

Demonstrate with an example of pointers to an objects.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 1 · Q3c
Show 2 Backup Questions

Develop a object oriented program to find the smallest and biggest among array elements.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q3

Discuss pointers to object with example code. Also discuss their advantages.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q3b

Module 3

Demonstrate the concept of inheriting multiple Base classes with example.

OCR transcription · Wording, symbols, or figures may be incomplete.

2 exam sessions
  • June-July-2024 · PDF page 1 · Q6b
  • Dec-2023-Jan-2024 · PDF page 1 · Q5a

9.6 Illustrate the use of constructors and destructors in inheritance in C++.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q6

Develop a program in C++ to derive a class "Manager" from class "Person¿ and "Employee". Consider suitable data members and member-functions for the classes. Explain "Virtual base Class" with an example.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 1 · Q6b
Show 2 Backup Questions

Explain the concept of New and delete functions in overloading with an example.

1 exam session
  • June-July-2024 · PDF page 1 · Q6a

Explain the use of "protected" members in inheritance with program.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 1 · Q6b

Module 4

Explain how virtual functions are hierarchical with suitable example program.

2 exam sessions
  • June-July-2024 · PDF page 1 · Q7b
  • Dec-2023-Jan-2024 · PDF page 1 · Q7

Define 'Pure virtual functions'. Differentiate 'Virtual functions' and 'pure virtual functions' with example.

1 exam session
  • June-July-2024 · PDF page 2 · Q7b

Design a C++ program demonstrating the use of the Pure Virtual function using base and derived classes. Also explain the code. What is polymorphism in C++? Explain its types with example. Explain virtual function in C++. Discuss what is early and late binding.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2024-Jan-2025 · PDF page 2 · Q7
Show 2 Backup Questions

Discuss the following terms : (1) Using non-type arguments with generic classes. (11) Using default arguments with template classes.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • Dec-2023-Jan-2024 · PDF page 2 · Q8b

Explain Generic functions with an example program. Demonstrate concept of power of templates with an example program. Module —5

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 1 · Q8

Module 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.

OCR transcription · Wording, symbols, or figures may be incomplete.

2 exam sessions
  • June-July-2024 · PDF page 2 · Q9a
  • Dec-2024-Jan-2025 · PDF page 2 · Q10a

Develop a C++ program that handles array out of bounds exception using C+t. Write short notes on Derived Class exception. 03-09 AY - AY - AY - AY - A1

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 2 · Q10b

Develop a function which through a division by zero exception and catch it in catch block, write a C++ program to demonstrate usage of try, catch and through to handle exception.

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 2 · Q9b
Show 2 Backup Questions

Discuss any 4 file handling methods. ** ***

OCR transcription · Wording, symbols, or figures may be incomplete.

1 exam session
  • June-July-2024 · PDF page 2 · Q10b

Discuss catching all exceptions and rethrowing an exception with examples.

1 exam session
  • Dec-2023-Jan-2024 · PDF page 2 · Q9b