Roll No……
Total No. of Questions: 9
MCA
(Sem.-1st)
OBJECT
ORIENTED PROGRAMMING IN C++
SUBJECT
CODE: MCA-102
PAPER
ID: B0129
Time: 3 Hrs. Max.
Marks: 100
Note: Candidates
are required to attempt one question from each section A, B, C, & D and the
entire Section-E.
SECTION-A
1. What
is object? How it is different from a
class? Explain various advantages of OOP approach over function approach.
2. a) What is implicit and explicit type conversion? Write C++
program to support your answer.
(b) What
are the character and symbolic constants? Discuss its need in C++.
SECTION-B
3. What
is an array? Write a C++ program to explain how an array is passed as an
argument to function.
4. Write
notes on the following-
(a)
Passing structure to a function in C++
(b)
Recursion with its merit and demerits.
SECTION-C
5. What is constructor? How it is different from destructor?
Explain how default and copy constructions are implemented in C++.
6. What is public and private inheritance? Explain how various
types of inheritance are implement in C++.
SECTION-D
7. Explain
the following:
(a) What is binary operator overloading? Explain how relational
operators are overloaded in C++?
(b)
Explain how exceptions are handled using Try-Catch block?
8. (a) Write a C++ program that reads a test file and count the
number of vowel present in it.
(b) What
is sure virtual function? Discuss its characteristics.
SECTION-E
9. (i) List various features of
iostream.h and iomanip.h header
files.
(ii)
List various rules for operator overloading.
(iii)
What are different properties of private and protected variable?
(iv)
Define virtual destructor.
(v) How
whole loop is different from do-while loop?
(vi)
What is use of static functions in C++?
(vii)
What is operator precedence in C++?
(viii)
List various features of pointers?
(ix) How
exceptions are handled in C++?
(x) How
static data member is defined in C++?
0 comments:
Post a Comment
North India Campus