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: Reena Malik Member Level: Diamond Posted Date: 22 May 2008
|
2005 Indira Gandhi National Open University (IGNOU) B.C.A CS72 : C++ AND OBJECT ORIENTED PROGRAMMING Question paper
BACHELOR IN COMPUTER APPLICATIONS Term-End Examination
December, 2005
CS72 : C++ AND OBJECT ORIENTED PROGRAMMING
Time: 2 hours Maximum Marks: 60
Note : Question number 1 is compulsory. Answer any three questions from the rest. 1. (a) What is dynamism in the context of the object oriented programming paradigm ? What are the different types of dynamism existing in the object-oriented programming paradigm.? Explain each type with the help of an example. (6)
(b) For each of the statements labelled (i), (ii),( iii) and (iv), point out the errors, if any. If there is no error in a statement, indicate its effect. (4)
Class base { int i; public : void set_i(int num) {i=num;} int get_i( ) {return i;} } Class derived : public base { int j; public : void set_j(int num) (j=num;) int get_j( ) {return j;} } void main () { base *bp; derived d; bp = &d; bp ? set_i(10); (i) bp ? set_j(20); (ii) cout << bp ? get_i(); (iii) cout << bp ? get_j(); (iv) }(c) What is inheritance ? What are its advantages ? Explain any two types of inheritance with the help of an exemplar diagram. (5)
(d) What is UML ? What are the benefits of UML for system designers ? List four types of UML diagrams. (5)
(e) Design a template class that is used to create a doubly linked list of integers or floats. Implement 'insert' and 'delete' operations along with the printing of elements. Also, check whether the linked list is null or not. (10)
2. Design and implement a class 'string' using an array, with a maximum size of 20 characters. The class should contain the necessary constructors, destructor, overloaded assignment operator and a friend function for concatenation of two strings. Make suitable assumptions if required. Also write main( ) for the above. (10)
3. (a) What is the need of a virtual function ? Describe this with the help of a suitable example using C++. What is a pure virtual function ? (6)
(b) What is an inline function ? In which situations would you make a function inline ? Give two examples of inline functions. (4)
4. Design and implement a class 'stack' using pointers. The class should include necessary constructors and destructor and the functions for addition and deletion of elements. It should also check whether a stack is full or empty. Make any assumption, if required. (10)
5. Define fhe following terms, with an example of each : (10) (a) Scope resolution operator (b) Macros (c) this pointer (d) iostreams
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
|