My Profile
Active Members
TodayLast 7 Days
more...
Awards & Gifts
Online Exams
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian
cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
|
Download Model question papers & previous years question papers
|
Posted By: RAFI Member Level: Gold Posted Date: 18 Jun 2008
|
2003 Indira Gandhi National Open University (IGNOU) B.C.A CS-72 : C++ AND OBJECT ORIENTED PROGRAMMING, JUNE 2003 Question paper
CS-72 : C++ AND OBJECT ORIENTED PROGRAMMING JUNE 2003
Note: Question one is compulsory. Answer any three from the rest.
1. (a) What is data abstraction? How is it related to/different encapsulation and polymorphism? Discuss with the help of an example. [5] (b) Design a template class for a binary search tree having only the search and insert function. Make suitable assumptions, if any. [5] (c) What are the access control violation in the following program segment: class All_public { public: int all_pub; All_public ( ){}; Void print ( ) } class Inherited: Private All_public { pivate: int some_private_data; public: int read( ); void print( ); } void main ( ) { All_public first; inherited second; second all_pub = 10; second.all_public.print( ); first.all_pub = 50. second. some_private_data = 200; } (d) Design and implement a class matrix having the following requirements: [15] • It represents matrix in two dimensional arrays. The maximum size of array can be 100 x 100. • There is a constructor that allocates the array of maximum size to the matrix object. • You can store any matrix of size m x n (m=100 and n=100) in this class. There is an additional initialization function to do so. • It prints the stored matrix in row/column format. • It adds and subtracts two matrices of same size. • It multiplies two given matrices after checking the necessary time constraints. • The class has provision for copy constructor and overloaded assignment operation. Write the appropriate main( ) function. Make suitable assumptions, if any. 2. Design and implement a class linked-queue which is implemented using pointers. The class includes AddQ, DeleteQ and Empty operations (standard operations o Data Structure Queue). Make suitable assumptions, if any. [10] 3. (a) How can you handle error in C++? Describe with the help of an example. What is the need of having error handling capabilities in C++? [5] (b) What is a reference variable? What is the usage of references in parametere passing? Why are references needed when call by value exists? What is the purpose of “const” keyword with respect to references? [10] 4. Describe the following with the help of one example each: [10] (a) Reusability of objects/classes (b) Input/Output streams in C++ (c) Macros and Inline functions (d) Inheritance and its need
5. (a) How can you overload the input operator in C++? Describe with the help of example. [4] (b) The access rules violated by friend functions and pointers.” Comment on the above statement. Give reasons in support or against the above statement. [3] (c) What is late binding? Is it different from dynamic binding? Justify your answer with the help of an example. [3] 6. Design a polymorphic class hierarchy for the Window based software. Assume that a window consist of Menu, Tools, Buttons and Iteraction area. Your class should include necessary data members, constructor/destructor and at least one polymorphic function. Make and state suitable assumptions, if any. [10]
Return to question paper search
|
|
|
Submit Previous Years University Question Papers and make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.
|
Watch TV Channels
|