How To Exam?

a knowledge trading engine...


Kurukshetra University 2009-4th Sem B.Tech ester. - Question Paper

Wednesday, 03 July 2013 10:30Web

BT-4M09
Object Oriented Programming Using C++
Paper :-IT-252 E
Time :Three Hours] [Maximum Marks:100
Note:- Attempt any 5 ques. selecting at lowest 1 ques. from every unit.

Unit 1:

1. a) what is the application of scope resolution operator in C++? 6.
b) differentiate ranging from default constructor and constructor with default argument. 6.
c) what do you mean by dynamic initialization of objects? discuss. 8.

2. a) when do you declare a member of class static? discuss. 10.
b) what is friend function? elaborate the merits and demerits of friend function? 10


Unit 2:

3. a) create a class rational which represents a numerical value by 2 double values numerator and denominator. include the subsequent public member functions:
i.) constructor with no arguments
ii.)constructor with 2 arguments
iii.) overload '>>' operator to enable input through cin. 12

b) write a program to implement the concept of virtual base class. 8.

4. a) elaborate pure virtual functions? how are they various from normal functions? 10.
b) what is containership? how does it differ from inheritance? 10

Unit 3:-

5. a) write a program that creates a binary file by studying the data from the terminal for the students consists of roll no., name and marks. 10.

b) what is file mode? define the different file mode choices available. 10.

6. a) how exceptions are handled in C++? 10.
b) what do you mean by rethrowing an exception and stack unwinding? 10.

Unit 4:-

7. a) write a function template for obtain the maximum value in an array. 10.
b) differentiate ranging from function template and class template. 10

8. write short notes on :-
a) Object modelling techniques.
b) abstract class
c) virtual destructor
d) manipulators. 20.


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Kurukshetra University 2009-4th Sem B.Tech ester. - Question Paper