MC7201-Object Oriented Programming Question Bank - Edited
MC7201-Object Oriented Programming Question Bank - Edited
in
www.universityquestions.in
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
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
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)
4.a)Scope and storage class b)Enum data type c)Template library d)Array of pointers
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.
UNIT-II
vil
PART-A
Ci
3.What are the two methods used to access the structure elements using pointers?
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.
12.Mention the different access specifiers available in c. What is the default access specifier?
t.in
19.Define 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
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
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).
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.
www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
8.Write a c++ program for stack ADT.
10.Structure pointer operator with an example program.Define member function inside the
class body.
UNIT-III
PART-A
t.in
5.List the operators that cannot be overloaded.
o
6.List the operators that cannot be overloaded as friends.
www.universityquestions.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
Visit : Civildatas.blogspot.in
PART-B
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
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
5.Write a program to demonstrate how to sort a vector elements using generic sort() algorithm.
t.in
7.Describe Template class and function templates with example
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
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?
10. What are the types of inheritance? Explain each type with example.
www.universityquestions.in
Visit : Civildatas.blogspot.in