How To Exam?

a knowledge trading engine...


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

Wednesday, 12 June 2013 10:00Web

Fourth Semester B.E Degree exam
(Common to CS and IS)
Model ques. Paper I
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) What is the need for structures in C? discuss with suitable example. (6)
(b) What is object oriented programming? Compare Object Oriented with Procedure
Oriented Programming? (6)
(c) What is an inline function? What is the advantage of having a function inline? Write a
C++ program to obtain maximum of 2 numbers using inline functions. (8)
2. (a) discuss the use of this pointer with an example. (5)
(b) elaborate friend classes? discuss with example. (5)
(c) Write a C++ program to sort the list of students depending on their roll Numbers
(10)
3. (a) discuss how new and delete operators manage memory allocation / deallocation
dynamically? (6)
(b) What is a constructor? discuss various kinds of Constructors with examples. (7)
(c) Write a C++ Program to generate Fibonacci series using copy constructors (7)
4. (a) What is inheritance? discuss various kinds of inheritance with examples. (10)
(b) Write a note on visibility of member functions based on private and protected
derivations (5)
(c) discuss the order of invocation of constructors and destructors with examples. (5)
PART B
5. (a) discuss virtual functions and write a C++ program to demonstrate dynamic
polymorphism. (10)
(b) Distinguish ranging from virtual function and pure virtual functions. (5)
(c) Write a note on I/O stream classes of C++. (5)
6. (a) Write a C++ program to perform addition and multiplication of 2 complex
numbers by overloading ‘+’ and ‘*’ operators (10)
(b) discuss various file pointer manipulation functions in C++. (10)
7. (a) What is operator overloading? Write a C++ program to compare 2 data
values representing distances in feet and inches using operator overloading (10)
(b) discuss new style cast operators in C++. (10)
8. (a) Write a C++ program for sorting a list of integer, floating point numbers and
characters by bubble sort technique using template functions. (10)
(b) What is exception handing and how is it treated in C++. (10)


( 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++ - Question Paper