Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

OBJECT ORIENTED PROGRAMMING DESIGN

Rating
-
Sold
-
Pages
9
Uploaded on
24-02-2023
Written in
2022/2023

Constructors and Destructors: Purpose of Constructors and Destructors – overloading constructors – constructors with default arguments – copy constructors – calling constructors and destructors – dynamic initialization using constructors – recursive constructor. Overloading Functions: Overloading unary operators – constraint on increment and decrement operators – overloading binary operators – overloading with friend functions – type conversion – one argument constructor and operator function – overloading stream operators. Inheritance: Introduction – Types of Inheritance – Virtual base classes – constructors and destructors and inheritance – abstract classes – qualifier classes and inheritance – common constructor – pointers and inheritance – overloading member function.

Show more Read less
Institution
Course

Content preview

OBJECT ORIENTED PROGRAMMING AND DESIGBN

QUESTION BANK

UNIT – I

OBJECT AND CLASSES


PART – A (2 MARKS)

1. Define Object Oriented Programming.

2. Define Objects.

3. What are the features of Object oriented programming.

4. Define Encapsulation and Data hiding.

5. Define Data Abstraction.

6. Define Data members.

7. Define Member functions.

8. Define Inheritance.

9. Define Polymorphism.

10. List and define the two types of Polymorphism.

11. Define Dynamic Binding.

12. Define Message Passing.

13. List some benefits of OOPS.

14. List out the applications of OOP.

15. What is the return type of main ()?

16. List out the four basic sections in a typical C++ program.

17. Define Token. What are the tokens used in C++?

18. Define identifier. What are the rules to be followed for identifiers?

19. State the use of void in C++.

20. Define an Enumeration data type.

, 21. Define reference variable. Give its syntax.

22. List out the new operators introduced in c++.

23. What is the use of Scope resolution operator?

24. List out the memory referencing operators.

25. Define Implicit Conversion.

26. What is call by reference?

27. What are inline functions?

28. State the advantages of Default Arguments.

29. Define Function overloading.

30. Define friend function.

31. Write the limitations/ disadvantages of C++

32. What is meant by Lvalue and Rvalue ?


PART – B

1. Explain the basic concepts of Object oriented programming (11)

2. Explain the use of constant pointers and pointers to constant with an example.(11)

3. a. State the differences between class and struct and also illustrate with an example. (6)

b. What are the difference between pointers to constants and constant to

pointers? (6)

4. a. Write a C++ program using inline function. (6)

b. Write a C++ program to illustrate the static function (6)

5. Explain briefly about function overloading with a suitable example. (11)

6. a. Discuss constant and volatile functions. (6)

b. What is linkage specification and also explain its need. (6)

7. Explain about call by reference and return by reference with program. (11)

Written for

Institution
Course

Document information

Uploaded on
February 24, 2023
Number of pages
9
Written in
2022/2023
Type
Class notes
Professor(s)
Swathilakshmi
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
vigneshsivakumar

Get to know the seller

Seller avatar
vigneshsivakumar Sri Manakula Vinayagar Engineering College
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions