FACULTY OF ENGINEERING AND TECHNOLOGY
Department of CSE-AI
Object Oriented Design & Programming
1 marks Questions:
1. Define class and object.
2. What is the function of using namespace.
3. What do you mean by header file.
4. What is the extension of c++.
5. What is the basic difference between abstraction and encapsulation?
6. What is the purpose of using inline function?
7. Which header file is used with macros.
8. Which block can catch and handle the exception?
9. What is the meaning of the file close() function?
10. What is the number of parameter that a default constructor requires?
11. What is the default access specifier for class?
12. Constructors cannot be inherited. True/False
13. Which concept allows you to reuse the written code?
4 marks Questions:
Q1.Explain principle of OOPs
Q2.Explain Friend function with example.
Q3.Explain Inline function with example.
Q4.Explain Macros with example.
Q5.Explain Function Overloading with example.
Q6.Explain Destructor using example.
Q7. Write a program to create class methods inside the class definition.
6 marks Questions:
Q1.Explain access modifiers in detail with examples for each.
Q2.Explain in detail about polymorphism
Q3.Explain the following Data Type conversion with example: 1. Basic to Class 2. Class to Basic 3. One class to another
class.
Q4. Explain the concept of Virtual functions and Pure Virtual functions with example.
Q5. Explain the different file opening modes and explain any one of them using example.
Q6. Write a C++ program to calculate the area of circle, rectangle and triangle using function overloading.
Q7.write the difference between POP and OOP.
FACULTY OF ENGINEERING AND TECHNOLOGY
Department of CSE-AI
Object Oriented Design & Programming
8 marks Questions:
Q1. Explain constructors with example for each type.
Q2. What is Inheritance? Explain the different types of inheritance.
Q3. Write a C++ Program to Demonstrate try, catch block using exception handling..
Q4.Explain Encapsulation with example.
Q5. Write a program to show access to Private Public and Protected using Inheritance.