C (2nd) May2017
C (2nd) May2017
C+.
o m
(b) What do you mean by a constructor? Explain different types of constructors used in
.r c SECTION-C
5. (a) What do you mean by inheritance? Why is this concept required? Explain the kind of
p e
ambiguities which may generate during inheritance and how can these be handled.
m
(b) What do you mean by virtual functions? Write a program in Ch to show use of virtual
functions.
a o
p .r c
6. (a) Explain different types of inheritance available in Ch. Describe every type of
r
inheritance with related syntax.
b e
(b) What do you mean by polymorphism ? Explain with an example, how polymorphism
can be implemented by using pointers.
p
p a
SECTION-D
7. (a) What do you mean by exceptions? Discuss the basics of exception handling
b r
mechanism and the advantages/disadvantages of exception handling.
(b) What are the steps involved in using a file in a C++ program? Discuss various classes
available for fill operations and different methods of opening a file.
8. Write notes on the following:
(i) Catching mechanism in exception handing
(ii) Random file processing and related functions
(iii) Binary file operations
SECTION-E
(Compulsory Question)
9. Attempt all parts:
(i) What do you mean by type cast in Ch?
(ii) Differentiate the private and public members of a class.
(iii) What is function overloading? Explain in brief.
(iv) Which operators cannot be overloaded in C++?
(v) What is difference between early and late binding?
(vi) How can you rethrow an exeption? Explain in brief.