[go: up one dir, main page]

0% found this document useful (0 votes)
129 views3 pages

OOP - Model Exam Question Bank

Uploaded by

poopathirajap03
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)
129 views3 pages

OOP - Model Exam Question Bank

Uploaded by

poopathirajap03
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/ 3

KNOWLEDGE INSTITUTE OF TECHNOLOGY, SALEM-637 504

(Autonomous)
Department of Computer Science and Engineering

Year/Sem: I/ II Model Exam Question Bank Date: 14.06.2024

BE23GE310- OBJECT ORIENTED PROGRAMMING USING C++

PART - A
1. Define Constants with example.
2. Write a C++ program to check whether a person is eligible to vote using if statement.
3. What are the advantages of object-oriented programming (OOP)?

4. What do you mean by a token?

5. List out inbuilt string function in C++.

6. What is the use of set precision( )?

7. Define inline function with example.

8. Difference between C and C++.

9. Explain the term class, Object.

10. What are the ways to create an object using parameterized constructor?

11. Give the significance of Protected access specifiers.

12. Write down the importance of destructor.

13. Difference between static data member and static member functions.

14. List the properties of static members and static member function.

15. What is a friend function in C++ example?

16. Write the needs of Inheritance.

17. What is a pure virtual function? Explain use of pure virtual function with an example

18. What is the advantage of inheritance?

19. Explain about Visibility Mode.

20. What are the points to be noted while deriving anew class?

21. How the ambiguity in multiple inheritance can be resolved?

22. Define polymorphism and types.


23. What is input/output stream in c++?

24. What is Operator Overloading ? Give Syntax and Example

25. What is method overriding in the context of polymorphism?

26. Write the needs of try block.

27. Differentiate sequential and random access files.

28. Compare and contrast error and exception

29. Write the process of open , read , write and close files?

30. What are the file streams?

PART B

1. Explain in detail about Operators in C++ with suitable example.

2. Explain about the structure of C++program with example program.

Write a C++ program to find the largest of the element from an array.
3.
Write in detail about the inline function with example.
4. Explain the control flow statements in C++ with example.

5. Write about Binary operators used in C++ with suitable program.

6. What is Expression? Explain about different types of Expression.

7. Illustrate with Example about Constructor and types and Write a Program to Illustrate Copy Constructor

8. .What is a Friend function? Describe their benefits and limitations? Give Suitable example

Write a C++ Program to create a Person class with a name and age as private members. Implement a
9. parameterized constructor to initialize these members with given values. Write a method to display the
person's details.
Explain the concept of a class in programming, including its declaration, accessspecifiers, definition of
10. class members, methods, and the process of creating an object. Provide a suitable example program to
illustrate these concepts.
11. What is inheritance? How does it enable code reusability, explain with an example?

12. Differentiate between virtual function and virtual class. Also explain the rules for virtual function.

13. Explain the role of constructors and destructors in inheritance in C++ with suitable example

14. Write a C++ program to demonstrating hierarchical inheritance to get the square and cube of a number:

What is operator Overloading? Write down a C++ program to adding complex numbers using operator
15.
overloading.
Explain about the virtual function and pure virtual function. Design a class hierarchy with a base class
16. Shape and derived classes Circle, Square, and Triangle. Implement a virtual function area() in the Shape
class, and override it in the derived classes to return the correct area for each shape
17. Explain the concept of a pure virtual function and abstract class in C++with an example.

18. Explain in detail about the exception handling with example.

19. Describe the process of file handling in c++ using iostream classes.

20. Explain Stream classes hierarchy with example

21. Write a C++program involving reading and writing of classs objects in a file

You might also like