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

Important C++ Questions Winter 2022 2023 Cleaned

Important questions

Uploaded by

shelarsiddhi59
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)
28 views2 pages

Important C++ Questions Winter 2022 2023 Cleaned

Important questions

Uploaded by

shelarsiddhi59
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/ 2

Important Questions for C++ (Winter 2022 & 2023)

1. Core Concepts in OOP:

- State applications of Object-Oriented Programming (OOP).

- Describe the characteristics and benefits of OOP.

- Explain the concept and types of constructors in C++.

- Differentiate between function overloading and operator overloading.

- Explain operator overloading and demonstrate how to overload the '+' operator.

- Differentiate between compile-time and runtime polymorphism.

2. Data Types and Operators:

- Explain user-defined data types with examples.

- Describe the use of the scope resolution operator.

- Discuss file modes used in file operations.

3. Advanced Program Development:

- Write a C++ program for generating Fibonacci series.

- Develop a program using multilevel and hierarchical inheritance.

- Develop a C++ program to accept marks for 5 subjects, calculate percentage, and display grades.

- Develop a program to demonstrate polymorphism (both compile-time and runtime).

- Implement a virtual base class in a C++ program.

- Write a program to calculate areas of different shapes using classes and objects.

4. Program Structure and Functions:

- Describe the structure of a C++ program.

- Explain the concept of friend functions with examples.

- Describe all visibility modes in C++ (public, private, protected).

- Explain inline functions and their advantages.


5. Classes and Inheritance:

- Define a class with data members and functions for managing book details.

- Explain inheritance, especially multilevel and virtual inheritance, with examples or code.

- Create a structure for a student record, allowing input and display for multiple students.

- Write a C++ program using classes to manage a student database.

6. Memory Management:

- Explain pointers with examples and use them for arithmetic operations.

- Develop a C++ program to check for the end of a file (EOF).

- Write C++ programs to perform arithmetic operations using pointers.

- Accept and sort arrays using functions.

7. Overloading and Constructors:

- Describe function overloading with examples.

- Write a program for a constructor with default arguments and explain the use of destructors.

- Concatenate strings by overloading the '+' operator.

You might also like