How To Exam?

a knowledge trading engine...


Deemed University 2011 B.Tech Information Technology University: Lingayas University Term: V Title of the : Object Oriented Programming Using C++ - Question Paper

Tuesday, 30 April 2013 01:10Web


Roll No

Roll No. ..

 

Lingayas University

B.Tech. 2nd Year (Term V)

Examination Feb 2011

Object Oriented Programming Using C++ (IT - 201)

 

[Time: 3 Hours] [Max. Marks: 100]

 


Before answering the question, candidate should ensure that they have been supplied the correct and complete question paper. No complaint in this regard, will be entertained after examination.

 


Note: Attempt five questions in all. All questions carry equal marks. Question no. 1 is compulsory. Select two questions from Section B and two questions from Section C.

Section A

Q-1. Part - A

Select the correct answer of the following multiple choice questions. (10x1=10)

(i) How many types of token are presents in C++

(a) 2 (b) 4

(c) 3 (d) 5

(ii) Function overloading in C++ is:

(a) We can have many functions with same name in one program

(b) We have many functions with different name in one program

(c) We have many functions with different argument, with different name

(d) None of these

(iii) By default, data member of a class is:

(a) Public (b) Private

(c) Protected (d) None of these

(iv) A data member of class can be declared static:

(a) Has common value to all objects

(b) Common value to the entire class

(c) Persist the value between different function call

(d) All the above

(v) A function declared as a friend

(a) Is in the scope of the class

(b) Is not in the scope of the class

(c) Is the class member function

(d) All the above

(vi) A constructor in C++ is a

(a) Special member function of class

(b) A function with name as class name

(c) A function used to initialized the object

(d) All the above

(vii) Operator overloading in C++ is

(a) Compile time polymorphism

(b) It shows static linking

(c) It shows early binding

(d) All the above

(viii) We can overload all the operator in C++ except

(a) (b)

(c) ? (d) All the above

(ix) A protected member inherited in public mode becomes

(a) Public (b) Protected

(c) Private (d) All the above

(x) In C++ this denotes to

(a) Class data variable (b) A class member function

(c) A pointer (d) None of these

Part B

 

(a) What is abstract class? (5)

(b) What is virtual base class? (5)

 

Section B

 

Q-2. (a) What is operator overloading? Write a program for operator overloading for binary operator using friend function.

(b) What is constructor in C++ ? What is parameterized constructor? Differentiate them with suitable example. (2x10=20)

Q-3. (a) What is array of objects? Write a program for it.

(b) What is friend function? What is friend class? Write a program for friend function. (2x10=20)

 

Q-4. (a) What are access modifiers in C++. How they are different from each other, and how we use it in a C++ program? (10)

(b) How space is allocated in memory for objects? Explain briefly. (5)

(c) Differentiate static data member and static member function. (5)

Section C

 

Q-5. (a) What is inheritance? Write a program for multiple inheritances.

(b) What are hierarchical inheritance and hybrid inheritance? Differentiate them. (2x10=20)

 

Q-6. (a) What is virtual base class? Write a program for virtual base class.

(b) Explain pointers, this pointer and virtual function with suitable example. (2x10=20)

 

Q-7. (a) Write a program for virtual function?

(b) What is pure virtual function? Explain its features. (2x10=20)

Q-8. (a) What is file? Explain the various file operation. Write a program for opening a file. (10)

(b) Write short note on following:

(i) Class and objects

(ii) Differentiate constructor and destructor

(iii) Differentiate C and C++

(iv) Run time polymorphism (4x2.5=10)

 

 


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Deemed University 2011 B.Tech Information Technology University: Lingayas University Term: V Title of the : Object Oriented Programming Using C++ - Question Paper