0% found this document useful (0 votes)
0 views

C++ Important Questions Revision Notes

The document outlines important questions and topics for quick revision in C++ and Object-Oriented Programming (OOP). It covers fundamental concepts such as classes, objects, inheritance, polymorphism, pointers, arrays, file handling, templates, and exception handling. Each unit includes definitions, comparisons, and programming examples to illustrate the concepts.

Uploaded by

abishekn156
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

C++ Important Questions Revision Notes

The document outlines important questions and topics for quick revision in C++ and Object-Oriented Programming (OOP). It covers fundamental concepts such as classes, objects, inheritance, polymorphism, pointers, arrays, file handling, templates, and exception handling. Each unit includes definitions, comparisons, and programming examples to illustrate the concepts.

Uploaded by

abishekn156
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C++ Important Questions - Quick Revision Notes

Unit 1: Introduction to C++ & OOP Concepts


1. Explain the basic concepts of Object Oriented Programming (OOP).

2. Compare Procedural Programming and Object Oriented Programming.

3. What is a class and object in C++? Give examples.

4. Define Encapsulation, Abstraction, Inheritance, and Polymorphism.

5. Write a simple C++ program to demonstrate class and object.

Unit 2: Classes and Objects


1. Explain the structure of a C++ program.

2. What are constructors and destructors? Write a program to demonstrate them.

3. Differentiate between default, parameterized, and copy constructors.

4. What is the role of the `this` pointer?

5. Write a program using static data members and static member functions.

Unit 3: Inheritance & Polymorphism


1. What is inheritance? Explain types of inheritance with examples.

2. Write a program to demonstrate multilevel or multiple inheritance.

3. Explain the concept of function overloading and operator overloading.

4. What is virtual function? How is runtime polymorphism achieved?

5. What is the difference between function overloading and overriding?

Unit 4: Pointers and Arrays


1. What are pointers? How are they declared and initialized?

2. Write a C++ program to demonstrate pointer to object.

3. Explain pointer arithmetic with examples.

4. What is the difference between `new` and `malloc()`?


5. Explain arrays of objects with a program.

Unit 5: Files, Templates & Exception Handling


1. Explain file handling in C++. Write a program to read/write a file.

2. What is a template? Differentiate between function and class templates.

3. Write a simple C++ program to demonstrate function template.

4. Explain try, catch, and throw with an example.

5. What are the benefits of exception handling?

You might also like