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

Question Bank 1 and 2 Unit

Uploaded by

upareshreyash04
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)
37 views2 pages

Question Bank 1 and 2 Unit

Uploaded by

upareshreyash04
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

Object Oriented Programming

Question Bank
Unit 1 and Unit 2
1Design a class ‘Complex’ with data members for real and imaginary part. Provide default and
Parameterized constructors. Write a program in c++ to perform a Subtraction of two complex numbers.

2. Discuss with example Dynamic initialization of object.

3.Write a program in c++ to use Scope Resolution Operator.

4.Write down a c++ program for copy constructor for string Class.

5.Explain polymorphism feature of oop with sutable example.

6.Define the terms :class and object

7.What are different features of object oriented programming language?

8.Write c++ program to illustrate concept of parametrized constructor.

9.Explain the concept of “this” pointer with example.

10 Differentiate between Procedure oriented and object oriented programming.

11.What is use of constructor? State four type of Constructor. Write a program in C++ for any one type.

12.How memory is allocated to a class and object in c++?

13.Definr Inheritance. Explain different types of inheritance.

14.Explain following term:

a.Data Encapsulation and Data Abstraction

b.Scope Resolution Operator

15.Write a c++ program to swap to integer number. Write separate Swap function using reference
variable.

16.Define class number which has inline function mult() and Cube() for calculating multiplication of 2
double number given and cube of integer number given.

17.What are inline function? What are their advantages? Give an example.

18.What is mean by Constructor and destructor? Write down a c++ program for copy constructor.

19What is Static Member function ?Give an example for same.


20.Define following:

a.Class

b.Static data Member

c.Inline Function

d.Access Member Control

e.Implicit and Explicit function

21. Explain array of object with example.

You might also like