Code No: 31003
Time: 3hours Max.Marks:60
Answer any Five questions
All questions carry equal Marks
1.a) Differences between OOP and Procedure Oriented Programming.
b) Need for OOP paradigm.
2.a) What is a sparse Matrix? Explain about the linear list representation of a sparse matrix?
b) Explain about the default argument with an example.
3.a) Explain about Constructors and Destructors?
b) When are copy constructors called?
c) Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?
4. What is template? Explain about function templates and class templates with suitable examples.
5.a) What is Hybrid inheritance? Write a program to illustrate the concept of Hybrid
Inheritance.
b) What is single inheritance? Write a program to illustrate the concept of single Inheritance.
6.a) Explain the need for "Virtual Destructor".
b) Write a program to call virtual function through constructor.
7.a) Explain about the formatted I/O in C++.
b) Explain about the console I/O in C++.
8.a) Explain about try, catch, throw keywords in C++?
b) Explain how try/catch/throw can improve software quality?
No comments:
Post a Comment