D–6900 Sub.
Code
31512
DISTANCE EDUCATION
M.C.A. DEGREE EXAMINATION.
MAY 2021 EXAMINATION
&
MAY 2020 ARREAR EXAMINATION
First Semester
OBJECT ORIENTED PROGRAMMING AND C++
(CBCS 2018-19 Aca. Year onwards & 2020-21 Aca.Year onwards)
Time : Three hours Maximum : 75 marks
PART A — (10 2 = 20 marks)
Answer ALL questions.
All questions carry equal marks.
1. What is the need for streams?
2. What is manipulator? Write two manipulators in C++.
3. Define the terms class and object.
4. What is ‘this’ pointer?
5. How will you overload Unary and Binary operators using
Friend function?
6. What is an abstract class?
7. Draw the hierarchy of file stream classes.
8. List any two ios functions.
9. What is meant by Exception?
10. Write the functions that handle uncaught exceptions.
PART B — (5 5 = 25 marks)
Answer ALL questions, Choosing either (a) or (b).
All questions carry equal marks.
11. (a) Briefly explain about object oriented programming
paradigm.
Or
(b) Write short notes on formatted I/O.
12. (a) What do you mean by inline function? Explain with
example code.
Or
(b) Explain copy constructor with suitable example.
13. (a) Describe Pure Virtual function with an example.
Or
(b) What is function overloading? Give an example.
14. (a) Explain with example how can a class template be
created.
Or
(b) What is file? Write an example program for
sequential access.
15. (a) Write short notes on catching exception. Give an
example.
Or
(b) Write a program to throw exception from overloaded
operator function.
2 D–6900
PART C — (3 10 = 30 marks)
Answer any THREE questions.
All questions carry equal marks.
16. Describe the basic concepts of Object Oriented
Programming.
17. Describe the concept of call by reference & return by
reference with program code.
18. Define the term Inheritance. Explain multilevel and
hierarchal inheritance with program code.
19. Explain the concept of function template with examples.
20. Explain the use of try, catch and throw for exception
handling in C++ through examples.
—————————
3 D–6900