M.C.A DEGREE
EXAMINATION , NOVEMBER/DECEMBER 2010
SECOND
SEMESTER
CA5151
OBJECT ORIENTED PROGRAMMING
(REGULATION
2009)
TIME : 3 Hrs MAXIMUM : 100 marks
Answer All
questions.
PART A – (10
* 2 = 20 marks)
1. Differentiate
Encapsulation from data hiding.
2. What is
meant by assertion?
3. What is
the use of Bit fields?
4. When do
we need to use default arguments in a function?
5. List the
operators, which cannot be overloaded.
6. What are
the uses of iterators?
7.
Differentiate class template from function template.
8. What is
meant by function adaptors?
9. Define
RTTI.
10. What is
pure virtual function?
PART B – (5
* 16 = 80 marks)
11. (a) What
are the elements of Object Oriented Programming ? Explain its key concepts with examples.
(b) Briefly explain about the components
standard template library.
(OR)
12. (a)
Explain the various storage classes with suitable example
(b) Write a program in C++ to find the
sum of the even numbers of the array using pointers.
13. (a) Describe
the concepts of dynamic construction with an example.
(b) What is the use of static data
member? Explain with an example.
(OR)
14. (a)
Discuss about the pointer in detail.
(b) With suitable example, discuss the
static member function.
15. How do
we overload unary operator? Explain with an example.
(OR)
16. With an
example, explain the binary operator overloading.
17. Describe
the concept of function template with an example.
(OR)
18. With
suitable example, discuss the class template.
19. (a) What
is type conversion? Explain the types in detail.
(b) Discuss about the rules for virtual
functions.
(OR)
20. What are
the different forms of inheritance? Explain any three forms with suitable
example.
No comments:
Post a Comment