Diploma Computer Application Object oriented programming and c++ Question paper
2008 Madurai Kamaraj University
Answer any FIVE questions.
All questions carry equal marks.
1. (a) Give a detailed note on organisation of data and functions in OOP. (10)
(b) Write notes on the following :
(i) User defined data types (5)
(ii) Derived data types. (5)
2. (a) Explain the following :
(i) Dynamic initialization of variables. (5)
(ii) Reference variables. (5)
(b) Write a C++ program to print the following : (10)
1
2 2
3 3 3
3. (a) Give a detailed note on control structures. (10)
(b) Write a C++ program for printing biggest of
3 numbers. (10)
4. (a) Make a note on INLINE function with illustration.
(10)
(b) Give a detailed note on function overloading. (10)
5. (a) Explain structures in detail. (10)
(b) Make a detailed note on ''Class'' in C++. (10)
6. Write short notes on the following :
(a) Constructors (10)
(b) Destructors and its implementation. (10)
7. (a) Explain the classes for file stream operations and opening of a file. (10)
(b) Write a C++ program for working with a file. (10)
8. Write short notes on :
(a) Updating a file by random access (10)
(b) Command line arguments. (10)