#1
June 23rd, 2014, 09:28 AM
| |||
| |||
Centre for Development of Advanced Computing MCA, Object Oriented Programming Exam paper
Can you give me question paper for Centre for Development of Advanced Computing(C-DAC), MCA, Object Oriented Programming Examination ? Here I am giving you question paper for Centre for Development of Advanced Computing(C-DAC), MCA, Object Oriented Programming Examination in PDF file attached with it so you can get it easily. Q. 1 (a) Explain the following features of OOPS :- 8 (i) Message Passing (ii) Extensibility (iii)Delegation (iv) Genericity (b) Explain overloading of new and delete operators by giving examples. 4 Q. 2 (a) Write a program that illustrate the mechanism for handling exceptions in the vector class, while creating its objects and accessing its elements for reading or writing. The program should overload the operator [ ] to simulate the operations on the user defined data types. 6 (b) Write a program that reads a sequence of names, one per line, and then sorts and prints them. 6 Q. 3 (a) Implement a vector class with a default constructor, a destructor, overloaded assignment operator, subscript operator, stream insertion operator and stream extraction operator. 6 (b) Explain the concept of friend function and friend class by giving examples. 6 Q. 4 (a) Write a program of an examination database using inheritance which has three classes namely person, student and exam. The student class inherits the properties of person class and exam class inherits the properties of student class directly and properties of person class indirectly. 6 (b) What is polymorphism and how is it achieved by means of virtual functions? Give an example. 6 Q. 5 (a) Do derivation and friendship mean the same? What are the similarities and dissimilarities between the two? 4 (b) Describe how an object of a class that contains objects of other classes are created. 3 (c) Briefly explain the working of inline functions. Also discuss their merits and demerits. When Should functions be declared inline? 3 Q. 6 (a) What is a container class? Explain homogenous, heterogeneous and vector classes. Write a program to implement a vector class template. 6 (b) Implement a string class. Each object of this class will represent a character string. Data members are the length of the string and the actual character string. In addition to constructors, destructor, access functions, and a print function, include a “subscript” function. 6 Q. 7 Define the following:- 6 (i) Wild pointers (ii) Garbage (iii)Dangling Reference Consider the following program: In the above program find out where all garbage, dangling reference and wild pointers exists. Identify statements which are treated as erroneous by the compiler. (b) Briefly explain the exception handling constructs. Write a program which binds a pointer to base class’ object to base or derived objects at runtime and invoking respective members if they are virtual. 6 Q. 8 Write a class template container to do binary tree operations (Create, print, traverse and search). The traverse should be in inorder, preorder and postorder. 12 Q. 1 (a) Define and explain the following terms with examples 12 (i) Encapsulation (ii) Polymorphism (iii) Inheritance Q. 2 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. 3 (a) Implement a integer class that checks for range (of value) violation. 8 (b) Is the following fragment valid? If not, why not? 4 int &f ( ); . . . int *x; x = f ( ); Q. 4 (a) What does the following 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? Explain. 2 (c) What is the utility of a virtual function in a class? Explain. 2 Q. 5 Design a template class for implementation of a stack of any object. Implement the template as a linked list. 12 Q. 6 (a) Demonstrate the overloading of the following operators or functions. 10 (i) new (ii) << (iii) (binary) (iv) # (v) * (Multiplication) (b) Which operators cannot be overloaded in C++. 2 Q. 7 Write short notes on ANY TWO of the following : - 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. Last edited by Neelurk; May 20th, 2020 at 12:19 PM. |
|