You are on page 1of 7

Visit : Civildatas.blogspot.

in
 
 

www.universityquestions.in

DEPARTMENT OF COMPUTER APPLICATIONS


MC 7201- OBJECT ORIENTED PROGRAMMING
Question Bank
UNIT-I
Part-A

1.What are the different properties provided by object oriented systems?


2.Compare call by value and call by reference.
3.Define encapsulation.
4. What do you mean by data binding?

t.in
5.What is an Abstract Data Type?

o
6.Give the structure of a c++ program.
7.What do you mean by enumerated data type?
sp
og
8.Define the term standard template library.
.bl

9.What do you mean by Data Abstraction?


tas

10.What is a variable in c++?How to form a variable?


da

11.How are data and functions organized in an oop?


vil

12.Compare private and public access specifiers in a class.


13.Define modular programming.
Ci

14.Define containers.
15.What do you mean by Data Abstraction?
16.Different classes and objects.
17.Define Oops.
18.Define tokens.
19.Define functions.
20.What is structural program and different structure & modular programming.

www.universityquestions.in

Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
 
 
PART-B

1.a.Explain concepts and capabilities of oops with example. (8)

b. Array declaration and manipulation, function invocation, pointers and its types, assertions.

2.a.What is function prototype? Describe with proper example write different styles of function
prototype and its advantages?

b.How pointers can be used in the array of characters? Give example of string functions using
pointers? (6)

3.Explain the different types of function calls with suitable example.

4.a)Scope and storage class b)Enum data type c)Template library d)Array of pointers

5.What is programming paradigm? Explain different kinds of programming paradigms.

6. Explain the declaration of a class in c++.How will you define the member function of a class?

t.in
Explain with example.

o
7.a.Explain in detail about programming elements and programming structure.

b.Explain in detail about storage class with example. sp


og
8.Explain the components of STL in detail.
.bl

9.a.What is oops?How it differs from structure programming.

b.Discuss characteristics of object oriented language.


tas

10.Explain function overloading with an example.


da

UNIT-II
vil

PART-A
Ci

1.Give one example for copy constructor.

2.State the use of ADT.

3.What are the two methods used to access the structure elements using pointers?

4.What is parameterized constructor?Flow they are accessed in the main program?

5.What is Function prototyping?Give an example.

6.How is a constructor defined and declared?

7.What is the use of ‘this’ keyword.

8.Define Bit fields.

9.With an example define multiple constructors.

www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
 
 
10.Write a program for swapping of two variables without using third variable.

11.What is the purpose of reference semantic?

12.Mention the different access specifiers available in c. What is the default access specifier?

13.What is the use of Dynamic allocation?

14.List out the different types of constructors?

15.What is the purpose of constructor and destructor?

16.Define structure and union with example.

17.Difference between structure and a class.

18.Rules for the friend function.

t.in
19.Define friend function.

20.Drawbacks of Friend function.

o
PART-B
sp
og
1.Discuss the reference semantics and explain the structure pointer operators with
example.
.bl

2.What is constructor?Discuss the syntax and rules of different types of constructors and
tas

explain it with suitable examples.


da

3.Write a C++ program to maintain ten sales man details of a vehicle show room.Define a
structure salesman with the following specifications sales man
vil

id,name,age,department,date of join count of vehicles sold,incentives,salary. Calculate the


net salary of a sales man by adding the incentives according to their sales per month(Eg: if
Ci

sales>=1,00,000 put incentive=500 with his salary,if sales between >=1,00,000 and
<=2,00,000 incentive=750,if sales is above 2,00,000 put incentive as 1000).

4.What is Destructor?What is the use of declaring a Destructor member function in a


programs.Explain with suitable example.

5.Explain pointers to objects,pointers to derived classes and use of ‘this’ pointer with
examples.

6.i)Explain static member functions with a sample code. ii)What are parameterized
constructors?Give example.

7.What is the need for parameterized constructors?Explain the function of default


constructor,parameterized constructor and copy with suitable example.

www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
 
 
8.Write a c++ program for stack ADT.

9.What is friend function?Explain the usage of friend function with an example?

10.Structure pointer operator with an example program.Define member function inside the
class body.

UNIT-III

PART-A

1.What is meant by ADT conversion?

2. What is meant by overloading? How it is achieved in c++?

3.What is meant by function selection?

4.What are the rules for overloading an operator?

t.in
5.List the operators that cannot be overloaded.

o
6.List the operators that cannot be overloaded as friends.

7.What is meant by visitation?


sp
og
8.What is the use of iterator?
.bl

9.Write the syntax for creating a list iterator.


tas

10.What are the various types of iterators?


da

11.what is meant by iterator operator?


vil

12.Differentiate sequence container with associative container.


Ci

13.Give some examples for sequence containers.

14.What is container adaptor? Give some examples .

15.Differentiate set and map.

16.Write the difference between list and vector container.

17.What are sequence containers?

18.Define the usage of iterators.

19. Define pointers to objects.

20. What is the difference between array and list?

www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
 
 
PART-B

1.Explain in detail function selection with suitable program.

2. write a program for overloading any one of a unary operator.

3. write a program for overloading any one of a binary operator.

4.Write a program for complex number manipulations using operator overloading

5. write a program for queue container.


6.Explain how a list container is used for inserting and displaying an element.

7.Describe the containers and sequence containers.

8.Which are operators that can’t be overloaded- state reason.

9. Explain in detail about function selection algorithm, pointer to operators and visitation with an

t.in
example.

10.(i). List the rules for operator overloading? Explain the STL reverse and insert iterators

o
UNIT-IV sp
og
PART-A
.bl

1. What is generic programming? How is it achieved


2. Compare template with polymorphism.
tas

3. What is a function template?


da

4. What is the use of typename?


5. What are the advantages of using templates?
vil

6. What is class template?


Ci

7. What is meant by parameter zing?


8. What are the different types of STL algorithms used in C++?
9. What is the significance of non-mutating sequence algorithm? Give example.
10. What is the significance of mutating sequence algorithm? Give example.
11. What is function object?
12. What is predicate object?
13. List some of the function object classes.
14. What is the use of function adaptors?
15. What is allocator on STL?
16. What is the need for RTTI?
17. What are the I/O manipulations?

www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
 
 
18. Define two operators used in dynamic memory allocation and de-allocation.
19. What is template?
20. STL, how it is differed from the c++ standard library?
PART-B

1.Explain with suitable program how a template function is overloaded in a program.

2.Write a program to demonstrate template class with non generic arguments.

3.Write a program to search an element in an array using template function.


4.Write a program for creating a generic stack to perform its various operations template.

5.Write a program to demonstrate how to sort a vector elements using generic sort() algorithm.

6.Write a program to illustrate the non-mutating sequence algorithm.

t.in
7.Describe Template class and function templates with example

8.Discuss I/O manipulation and Random access.

o
sp
9. Write a c++ program to define a function template to swap the contents of two data items of type
int, float, and char?
og
10. Implementation of simple ADT’s with two example.
.bl

UNIT-V
tas

            PART-A
da

1. How to call a base class method without creating an instance?


vil

2. What is hierarchical inheritance?


Ci

3. What is exception handling?


4. What is the use of the visibility modifier “protected”?
5. Write the first line of s specifier for a class toy that is derived from class plastic and class
rubber?
6. What are pure virtual functions? Write the syntax
7. What is Hybrid inheritance? Give an example.
8. What are the types of Exception?
9. Give various types of Inheritance.
10. What is an exception when should a program throws an exception.
11. How is the type casting performed in c++?
12. . Define function template with its syntax?
13. Write a function template that swaps the values of two variables of any type?
www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
 
 
14. What is the use if containers class?
15. Write any four rules for operator overloading?
16. What is meant by Input iterators?
17. How to declare c++ class templates?
18. What is meant by function adopters?
19. What is an iterator what are its characteristics?
20. STL, how it is differed from the c++ standard library?
 

PART-B

1. a.What is exception handling? Describe in detail about how exceptions are handled using try
catch and throw blocks? (8) b.Explain the following I)types of conversions and visibility. II) Virtual
functions.

t.in
2.Explain STL algorithms in detail.

o
3.Different types of inheritance and how it could be used in payroll program(16).
sp
4.Discuss about Virtual functions? Explain with suitable code(8) Explain about runtime type
og
identification with sample program(8)
.bl

5.Give 8 rules for virtual functions. Explain code reuse with example
tas

6. Define Virtual functions and pure virtual functions(3) discuss with example?

7.What are exception handling in c++?with example.


da

8.Create a class to model entries in a telephone directory (name,address,phone no)define suitable


vil

class and inheritance hierarchy with a program to test these class(10)


Ci

9.Explain about Formatted I/ O and I/O manipulations.

10. What are the types of inheritance? Explain each type with example.

www.universityquestions.in
Visit : Civildatas.blogspot.in

You might also like