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

Oops 1

Uploaded by

soradesigns21
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)
7 views2 pages

Oops 1

Uploaded by

soradesigns21
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

1. Classes and Objects:


○ Define classes and objects with examples. Explain the differences between them.
○ What are the features of Object-Oriented Programming (OOP)?
○ Write a program in C++ to demonstrate the creation and use of classes and
objects.
2. Methods and Messages:
○ What are methods and messages in OOP? How are they implemented in C++?
3. Abstraction and Encapsulation:
○ Differentiate between abstraction and encapsulation. Provide examples in C++.
○ Write a program to demonstrate encapsulation using private and public access
specifiers.
4. Inheritance:
○ What is inheritance? Discuss the different types of inheritance in C++ with
examples.
○ Explain the advantages and disadvantages of inheritance in OOP.
5. Abstract Classes and Polymorphism:
○ What are abstract classes? Explain with an example program in C++.
○ Define polymorphism. Differentiate between compile-time and run-time
polymorphism.
6. Introduction to C++:
○ Write short notes on:
■ Friend functions and friend classes.
■ Inline functions and their advantages.
■ Static class members and their uses.
7. Scope Resolution Operator:
○ Explain the purpose of the scope resolution operator with examples.
8. Nested Classes and Local Classes:
○ What are nested and local classes? How do they differ? Provide examples in
C++.
9. Passing and Returning Objects:
○ How are objects passed to and returned from functions in C++? Write a program
to demonstrate.
10. Arrays, Pointers, and References:
○ Write a program to demonstrate the use of arrays of objects in C++.
○ Explain the difference between pointers and references in C++ with examples.
11. Dynamic Allocation Operators:
○ What are new and delete operators? How are they used for dynamic memory
allocation in C++? Provide examples.
○ Write a program to allocate and deallocate memory dynamically for an array of
objects.
12. this Pointer:
○ What is the this pointer in C++? Write a program to demonstrate its usage.
13. Pointers to Derived Types and Class Members:
○ Explain the concept of pointers to derived types with an example.
○ How are pointers used to access class members? Provide a program to illustrate.

Previously Asked Questions (PYQs)

1. Inheritance:
○ Explain different types of inheritance with suitable examples. (Frequently Asked)
2. Friend Functions:
○ What is the purpose of a friend function? Write a C++ program demonstrating its
use. (Repeated in 2020, 2022)
3. Polymorphism:
○ Differentiate between function overloading and function overriding with examples.
(2021, 2023)
4. Dynamic Memory Allocation:
○ Write a program in C++ to demonstrate the use of new and delete operators.
(Frequently Asked)
5. Scope Resolution Operator:
○ Explain the use of the scope resolution operator in accessing global variables
and class members. (2019, 2022)
6. Encapsulation:
○ Write a program to demonstrate encapsulation by creating a Student class with
private data members and public methods. (2020, 2023)
7. Abstract Classes:
○ What is an abstract class? How is it different from a regular class? Provide an
example. (Repeated in 2018, 2022)
8. this Pointer:
○ Explain the role of the this pointer in class methods. (Frequently Asked)
9. Returning Objects:
○ Write a C++ program to demonstrate returning objects from functions. (2021)
10. Nested Classes:
○ What are nested classes? Write a program to show their use. (2023)

You might also like