Visvesvaraya Technological University (VTU) 2006 B.E Information Science and Engineering 4th sem is/cs - Question Paper
MODEL QUESTION PAPER - I
06CS44
Fourth Semester B.E. Degree Examination, January 2008
CSE/ISE
Object Oriented Programming with C++
Time: 3 hrs. Max. Marks: 100
Note: Answer atleast 2 full questions from each part.
PART- A
- (a) What is the need for structures in C? Explain 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 find maximum of two numbers using inline functions. (8)
- (a) Explain the use of this pointer with an example. (5)
(b) What are friend classes? Explain with example. (5)
(c) Write a C++ program to sort the list of students depending on their roll Numbers (10)
- (a) Explain how new and delete operators manage memory allocation / deallocation
dynamically? (6)
(b) What is a constructor? Explain different types of Constructors with example? (7)
(c) Write a C++ Program to generate Fibonacci series using copy constructors (7)
- (a) What is inheritance? Explain different types of inheritance with examples. (10)
(b) Write a note on visibility of member functions based on private and protected
Derivations (5)
(c) Explain the order of invocation of constructors and destructors with examples. (5)
PART B
- (a) Explain virtual functions and write a C++ program to demonstrate dynamic
Polymorphism. (10)
(b) Distinguish between virtual function and pure virtual functions. (5)
(c) Write a note on I/O stream classes of C++. (5)
- (a) Write a C++ program to perform addition and multiplication of two complex
numbers by overloading + and * operators (10)
(b) Explain different file pointer manipulation functions in C++. (10)
- (a) What is operator overloading? Write a C++ program to compare two data
values representing distances in feet and inches using operator overloading (10)
(b) Explain new style cast operators in C++. (10)
- (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 / How is it handled in C++ explain. (10)
Earning: Approval pending. |