How To Exam?

a knowledge trading engine...


Centre for Development of Advanced Computing(C-DAC) 2003 M.C.A -110 Object Oriented Programming - Question Paper

Saturday, 02 February 2013 01:00Web

End-Term exam
Second Semester [MCA] – DEC 2003

Paper Code: MCA-110 Subject: Object Oriented Programming
Time: three Hours Maximum Marks: 60

Q. one (a) describe and discuss the subsequent terms with examples 12
(i) Encapsulation
(ii) Polymorphism
(iii) Inheritance

Q. two Compare and contrast the following:- 12
(i) Private and Public methods.
(ii) Protected and friends function
(iii) Static classes and structures
(iv) Pointer and reference variables.

Q. three (a) Implement a integer class that checks for range (of value) violation. 8
(b) Is the subsequent fragment valid? If not, why not? 4
int &f ( );
.
.
.
int *x;
x = f ( );

Q. four (a) What does the subsequent program? 8
#include
class A {
public :
A ( ) { cout << ”Constructing A\n “; }
~A ( ) {cout << “Destructing A\n “; }
};
class B {
public:
B( ) {cout << “Constructing B \n “; }
~B ( ) {cout << “Destructing B \n “; }
};
class C: public A, public B {
public:
C ( ) {cout<<”Constructing C \n “; }
~C ( ) {cout << “Destructing C \n “; }
};
void main( )
{
C ob;
Return ;
}
(b) What is the role of virtual base class? discuss. 2
(c) What is the utility of a virtual function in a class? discuss. 2

Q. five Design a template class for implementation of a stack of any object. Implement
the template as a linked list. 12

Q. six (a) Demonstrate the overloading of the subsequent operators or functions. 10
(i) new (ii) <<
(iii) (binary) (iv) #
(v) * (Multiplication)
(b) Which operators cannot be overloaded in C++. 2

Q. seven Write short notes on ANY 2 of the subsequent : - 6+ 6
(a) Standard Template Library.
(b) Namespace and Namespace mangling
(c) “Since C++ provides procedural programming constructs, C++ is not an
object oriented language”. Comment.
(d) Late binding.


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Centre for Development of Advanced Computing(C-DAC) 2003 M.C.A -110 Object Oriented Programming - Question Paper