Saurastra University 2006 B.Sc Information Technology Oops With C++ (Common) - Question Paper
SD-1961 Seat Seat No.
* S D - 1 9 6 1 *
B. Sc. (I.T.) (Sem. III) Examination March / April - 2006 Oops With C++
[Total Marks : 100
Time : 3 Hours]
1 Explain the following with examples : (any four)
20
(i) Inline function
(ii) Virtual function
(iii) Function overloading
(iv) Exception handling
(v) Manipulators.
2 Explain the following terms : (any ten) 20
(i) this pointer
(ii) Destructor
(iii) Default argument
(iv) Copy constructor
(v) Pointer to object
(vi) Virtual base class
(vii) Encapsulation
(viii) Scope resolution operator
(ix) Function prototype
(x) Pointer
3 Answer the following : (any two)
20
(i) Explain dynamic memory management operators available in C++.
(ii) What is polymorphism? Explain with suitable example.
(iii) What is inheritance? Explain various types of inheritance.
4 Answer the following : (any four) 20
(i) What is the difference between early binding and late binding.
(ii) Distinguish between automatic and static data members of a class.
(iii) Explain type casting and type conversion.
(iv) Explain friend function with example.
(v) Explain private, protected and public scope of class.
(vi) Explain operator overloading with example.
5 Write a program : (any two) 20
(i) Write a program to append the content of one file to another.
(ii) Write a program for addition of matrices A and B by using class (size of matrices 3 x 4).
(iii) Define a class student with appropriate variables for roll number and name. Write a method to sort the name in descending and ascending order.
SD-1961] 2 [ 100 ]
Attachment: |
Earning: Approval pending. |