0% found this document useful (0 votes)
19 views3 pages

Sub. Code 31512

The document is an exam paper for an object oriented programming and C++ course. It contains three parts - Part A with 10 short answer questions, Part B with 5 long answer questions choosing between options, and Part C with 3 long answer questions to choose from. The questions cover topics like classes, objects, streams, exceptions, templates, inheritance and operator overloading.

Uploaded by

Jeeva Sundaram
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)
19 views3 pages

Sub. Code 31512

The document is an exam paper for an object oriented programming and C++ course. It contains three parts - Part A with 10 short answer questions, Part B with 5 long answer questions choosing between options, and Part C with 3 long answer questions to choose from. The questions cover topics like classes, objects, streams, exceptions, templates, inheritance and operator overloading.

Uploaded by

Jeeva Sundaram
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/ 3

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy