How To Exam?

a knowledge trading engine...


Visvesvaraya Technological University (VTU) 2006 B.E Computer Science oops with c++ 2 - Question Paper

Wednesday, 12 June 2013 09:55Web

Fourth Semester B.E Degree exam
(Common to CS and IS)
Model ques. Paper II
06CS44 Object Oriented Programming with C++
Note: ans any 5 Full questions, selecting at lowest 2 ques. from every PART
Time: three Hours Maximum marks : 100
PART- A
1 (a) With examples compare structures in C with classes in C++. (4)
(b) What is function overloading? elaborate the advantages of overloading a
function? Write a program in C++ to overload the function add(s1,s2) where
S1 and s2 are integers and floating point values. (10)
(c) With an example explain the significance of function prototyping. (6)
2 (a) what is the role played by private and public access specifiers in case
of structures and classes? discuss with suitable examples. (8)
(b) discuss with an example how 1 can bridge 2 classes using friend function. (6)
(c) Write a note on Nested class. (6)
3. (a) What is Dynamic Memory Management? Write a C++ program
to create array of objects at runtime. (12)
(b) Is overloading of constructors and destructors possible? Justify your answer? (8)
4. (a) What is reusability? How do you achieve this in c++? (6)
(b) elaborate the various ambiguities involved in multiple inheritance
and how they are resolved? (8)
(c) Write a C++ program to use a base class pointer to point to an
object of derived Class without the need for kind casting? (6)
PART B
5 (a) elaborate virtual functions? discuss the mechanism of virtual functions. (8)
(b) With a neat diagram discuss the class hierarchy for stream handling in C++. (6)
(c) What is pure virtual function? discuss with an example. (6)
6. (a) Distinguish ranging from text and binary files in C++. (6)
(b) What is operator overloading? discuss its advantages. Write a C++
program to overload ‘+’ operator to concatenate 2 string variables. (10)
(c) elaborate the rules for overloading operators? (4)
7. (a) Write a C++ program to create a class ‘String’ by overloading assignment
operator. (8)
(b) discuss how to overload pointer to member operator in C++. (4)
(c) Write a note on (i) static cast operator (ii) dynamic cast operator. (8)
8. (a) discuss RTTI in detail. (6)
(b) Write a C++ program using function templates for accepting integer
and floating values to perform stack operation. (8)
(c) What is Exception handling? discuss try, throw , catch constructs in
C++ (6


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Visvesvaraya Technological University (VTU) 2006 B.E Computer Science oops with c++ 2 - Question Paper