How To Exam?

a knowledge trading engine...


Cochin University of Science and Techology (CUST) 2008 B.Tech Information Technology object oriented programming using c - Question Paper

Monday, 27 May 2013 01:55Web

BTECH DEGREE third SEMESTER exam ,NOVEMBER 2008
IT/CS 304 OBJECT OIENTED PROGRAMMING USING C++
(2006 SCHEME)
Time:3 Hours Maximum Marks:100
PART A
1 a) describe polymorphism. elaborate the techniques used by c++ for achieving it?
b) What is meant by data hiding? How it is achieved?
c) How inline function is defined? elaborate its merits and limitations?
d)How the member functions and the static variables of a class are stored in memory?
e) Compare and contrast the subsequent declarations:
i) Char s1 [50] ii) String S2
f) How c++ manages dynamic memory?
g) What is late binding?
h) What is an exception and how they are handled? (8*5=40)




PART B (4*15=60)
2 a) Compare procedural programming with object oriented programming.(5)
b) Write a class named ‘Fibonacci to generate 1st ‘n’ Fibonacci numbers.
Use necessary member variables, member functions and constructor. Test this class in the main program. (10)
OR

3 a) How data input and output is done in c++? (5)
b) Write a program using class to obtain the largest and smallest of ‘n’ elements which are input into an array in the class. Use necessary member variables, member functions and constructor. (10)

4 a)What is function overloading?(5)
b) Write a program to obtain the area of a circle, rectangle and triangle(given three sides)by overloading the function area () (10)
OR

5 a)What is operator overloading?(5)
b) Write a class named ‘matrix', which contain a 2 dimensional array, rows, columns as member variables. Overload the binary operators + and *,and unary operator –(to negate all values)for the matrix class. Using main program, test different operations.(10)

6 a)What is inheritance? elaborate its different form?(5)
b)Solve the issue of finding real, equal and imaginary roots of a quadratic formula a(x)2+bx+c=0,a<>0 by implementing the subsequent inheritance.(10)

Class: Complex Number
Real part, imaginary part


Class: Quadratic formula
a, b ,c and discriminate, roots

OR
7 a)What is an abstract class? (5)
b)Write a program to implement the subsequent inheritance.
Bank Account

Person
Savings Bank Account
Current Account


Savings Bank Account Holder

Use necessary member variables for storing account holders personal details as well account details .In the main program ,use array of objects to input details of ‘n ‘savings bank account holders. Finally print a report of all ‘n’ account holders.(10)

8 a)Explain the concept of generic programming .(5)
b) Write a program using templates class to create and manage a generic array which can store int, float or string. Write member functions for inputting and printing array values. Using main program test the template class by creating instances with the 3 data kinds.(10)
OR

9 a)What are the 3 main file streams and write their import member functions?(5)
b) Write a program to learn the contents of a text file and convert all upper case letters to lower case and vice versa and write the outcome into a different file. (10).
***********************



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Cochin University of Science and Techology (CUST) 2008 B.Tech Information Technology object oriented programming using c - Question Paper