0% found this document useful (0 votes)
287 views11 pages

OOP IMP Questions and Topics

Uploaded by

omeshshewale965
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)
287 views11 pages

OOP IMP Questions and Topics

Uploaded by

omeshshewale965
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/ 11

OOP IMP Questions And Topics:-

(2019-winter,2019-summer, 2022-summer,2023-summer,2023-winter)

❖ Key Topics:-

1. Object – Oriented Programming(oop)


o Principles of OOP(encapsulation , inheritance , polymorphism , abstraction).
o Applications and benefits of OOP.
o Static and Dynamic memory management.
o Types of inheritance(single , multiple , multilevel , hybrid)

2. C++ Programming Concepts


o Classes And Objects
o Constructors(parameterized , overloaded , default) and Distructors.
o Friend functions and Virtual functions.
o Static members and static functions.
o Pointers, this pointer and use of pointer operators.

3. Polymorphism
o Compile time vs run – time polymorphism.
o Operator overloading.
o Function overloading

4. Inheritance and Visibility Modes

Page | 1
o Types of Inheritance(single , multiple , multilevel , hybrid).
o Visibility modes (public , private , protected)
o Programs involving inheritance hierarchy

5. Constructors and Distructors


o Types of constructors(default , parameterized , copy)
o Constructor with default arguments
o Difference between constructor and distructor.

6. File Handling in C++


o File operations(open , read , write , close).
o Use of File Streams(fstream , ifstream , ofstream)
o Programs involving file copying and counting lines in a file.
❖ Frequently Asked Questions

1. Basic Definitions and Differences


o Difference between OOP and POP
o Define Polymorphism and its types
o Memory management operators in c++

2. Code – Based Questions


o Programs for Single Inheritance and hybrid Inheritance
o Overloading functions and operators
o File Handling operations like copying content from one file to another file
o Program to declare and use classes , e.g., student,book,college,employee

Page | 2
3. Theory and Conceptual Questions
o Characterstics and rules of virtual functions
o Use and syntax of scope resolution operator
o Type casting and its use in c++

4. Practical Applications of OOP


o Examples of OOP applications
o Advantages of pointers and pointer usage in classes

❖ Common Questions[MOST IMP]:-

➢ Differentiate Base Questions -

1. State the difference between OOP and POP. (winter 2019 – 2 marks) Q1.a
2. Differentiate between C and C++. (winter 2023 - 2 marks)Q1.a
3. Differentiate between compile time and run time polymorphism.(summer 2022 – 4 marks)Q3.d

➢ Definition , Syntax Base Questions –

Page | 3
1. What is a class? Give its example.(winter 2019 – 2 marks) Q1.b
2. What is a class? Give its example.(summer 2019 – 2 marks) Q1.d
3. Give the syntax of class.(winter 2023 – 2 marks)Q1.b
4. Write the syntax for declaration of a class.(summer 2023 – 2 marks)Q1.b
5. Give syntax and use of fclose ( ) function(winter 2019 – 2 marks)Q1.g
6. Give the syntax and use of fclose( ) function.(winter 2023 – 2 marks)Q1.d

➢ Diagram Based Questions(Draw Diagram):-

1. What is multilevel inheritance? Draw the diagram to show multilevel inheritance. using classes with data member and member
function.(winter 2019 – 2 marks)Q1.c
2. Explain multilevel inheritance with an example.(winter 2023 – 4 marks)Q3.b
3. Describe structure of C++ program with diagram.(summer 2019 – 3 marks)Q6.a-i]

➢ State The Use, Properties, Characterstics Questions :-

1. Explain use of scope resolution operator.(winter 2019 – 2 marks)Q1.d


2. State use of scope resolution operator(summer 2019 – 2 marks)Q1.c
3. State the use of scope resolution operator and explain it with example.(summer 2023 – 6 marks)Q5.a
4. Write two properties of static member function(winter 2019 – 2 marks)Q1.e
5. Describe use of static data member.(summer 2019 – 2 marks)Q1.e
6. State the characteristics of static member function.(summer 2023 – 2 marks) Q1.c

Page | 4
➢ Virtual Base Class IMP:-

1. Explain virtual base class with suitable example(winter 2019 – 2 marks)Q1.f


2. Explain virtual base class with an example(winter 2023 – 6 marks)Q6.b
3. Illustrate the concept of virtual base class with suitable example(summer 2023 – 4 marks)Q4.c
4. Describe the concept of virtual base class with example.(summer 2022 – 4 marks)Q4.a
5. State any four rules for virtual functions.(summer 2023 – 4 marks)Q3.c
6. State the need of virtual function in C++.(summer 2022 – 2 marks)Q1.g
7. What are the rules for virtual function?(winter 2019 – 4 marks)Q3.d

➢ Constructor And Distructor:-

1. What is parameterized constructor?(winter 2019 – 4 marks)Q4.a


2. Differentiate between constructor and destructor in C++. (Any four points) (winter 2023 – 4 marks)Q4.e
3. Give the syntax for constructor in derived classes.(summer 2023 – 2 marks)Q1.e
4. State the difference between constructor and destructor. (any six points)(summer 2023 – 6 marks)Q6.a
5. Define constructor. List types of constructor(summer 2022 – 2 marks)Q1.d
6. Describe constructor with default arguments with an example.(summer 2022 – 4 marks)Q4.e
7. State the rules for writing destructor function.(winter 2019 – 4 marks)Q3.b
8. List any four properties of constructor function. (summer 2023 – 4 marks)Q4.b

➢ Polymorphism And Pointer:-

Page | 5
1. Describe ‘this’ pointer with an example(winter 2019 & 2023 – 4 & 6 marks)Q2.d & Q5.b
2. Define polymorphism with it’s types.(summer 2023 – 2 marks)Q1.f
3. Illustrate this pointer with example.(summer 2023 – 4 marks)Q2.d
4. Write C++ program to overload binary operator ‘+’ to concatenate two strings.(summer 2023 – 6 marks)Q6.c
5. Write a C++ program to overload add function to add two integer numbers and two float numbers.(summer 2022 – 4 marks)Q4.b
6. Define pointer operator and address operator with example.(summer 2022 – 3 marks)Q5.a-i]
7. Write a C++ program to overload “+” operator so that it will perform concatenation of two strings. (Use class get data function to
accept two strings)(summer 2022 – 6 marks)Q6.b
8. Write any three rules of operator overloading(summer 2019 – 3 marks)Q5.a-i]
9. Write a program in C++ to overload unary ‘_’ operator to negate values of data members of class. (summer 2019 – 3 marks)Q5.b-ii]
10. Write a program to overload the ‘—’ unary operator to negate the values.(winter 2019 – 6 marks)Q6.c

➢ Inheritance IMP:-

Page | 6
1. Write a program to implement single inheritance from the following Refer Figure No. 1.(winter 2019 – 4 marks)Q2.b

2. Write a program to implement multiple inheritance as shown in following Figure No. 1:(summer 2019 – 4 marks)Q4.a

Page | 7
3. Write a C++ program to implement following in inheritance. Refer Figure No. 2.(summer 2019 – 6 marks)Q6.c

4. Write a program to implement inheritance as shown in figure No. 2. Assume suitable member function (summer2022 – 6

marks)Q6.c

Accept and display data of one Teacher and one Officer.

Page | 8
5. Describe following terms: Inheritance, data abstraction, data encapsulation, dynamic binding.(summer 2019 – 4 marks)Q4.b
6. Write a program to implement the following hierarchy using suitable member functions. Refer Figure No. 2.(winter 2019 – 6

marks)Q6.b

7. Explain abstract class with suitable example.(summer 2023 – 4 marks)Q6.b

8. State and describe visibility modes and its effects used in inheritance(summer winter 2019 – 4 marks)

Page | 9
➢ Functions:-

1. Explain the friend function with proper example.(winter 2019 – 4 marks)Q4.c


2. Explain inline member function.(winter 2023 – 2 marks)Q1.e
3. Explain the characteristics of Friend function(winter 2023 – 4 marks)Q4.c
4. Write any two characteristics of friend function.(summer 2022 – 2 marks)Q1.f

➢ File Operations:-

1. Write a program that copies contents of one file into another file.(winter 2019 – 6 marks)Q6.a
2. Write a C++ program to count number of spaces in text file(summer 2019 – 4 marks)Q4.d
3. Write a C++ program to append data from abc . txt to xyz . txt file.(summer 2019 – 6 marks)Q5.b
4. Write a C++ program for write into a file using file operations.(winter 2023 – 4 marks)Q3.d
5. Write a program for closing a file.(summer 2023 – 4 marks)Q4.e
6. Explain ios :: app and ios :: in flags(summer 2022 – 2 marks)Q1.e
7. Write the use of ios : : in and ios : : out.(summer 2019 – 2 marks)Q1.e

➢ Array Of Object:-

Page | 10
1. Write a program to declare a class ‘student’ having data members as ‘stud_name’ and ‘roll_no’. Accept and display this data for 5
students.(winter 2019 – 6 marks)Q5.a
2. Write a C++ program to declare a class student with members as roll no, name and department. Declare a parameterised
constructor with default value for department as ‘CO’ to initialize members of object. Initialize and display data for two
students.(summer 2019 – 6 marks)Q5.c
3. Write a C++ program to define structure student having data members name, roll no., age. Accept and display data for one
student.(winter 2023 – 4 marks)Q3.c
4. Write a program to declare a class ‘employee’ containing data members ‘emp-id’ and ‘salary’. Accept and display this data for 10
employees.(winter 2023 – 6 marks)Q5.c

Page | 11

You might also like