Need help about a course? |
|
Home / Test Papers / Indira Gandhi National Open University / CS72 C++ and Object Oriented Programming CS72 C++ and Object Oriented Programming June 2006 | Ask a question Print this page |
BACHELOR IN COMPUTER APPLICATIONS
Term-End Examination
Time: 2 hours
Maximum Marks: 60
June 2006
1. (a) Explain the role of inheritance in Object Oriented Programming, with a suitable example. (5)
(b) Define static binding. Give an example to demonstrate its use. Give advantages and disadvantages of static binding. (5)
(c) How is a function overloaded ? Explain this with an example using C++. (5)
(d) Explain the difficultieS encountered in the usage of multiple inheritance, with an example. (5)
(e) Explain the utility of templates with an example. (5)
(f) Write a program in C++ to demonstrate the concept of a virtual function. (5)
2. (a) Explain the various access specifiers available in C++, and differentiate between them with the help of an example. (5)
(b) (i) Give two distinct situations, with justification in which a constructor would need to be overloaded.
(ii) Can a destructor be overloaded ? Give reasons for your answer. (5)
3. (a) Create a class Complex and implernent the following : (10)
* define suitable construtors and destructors
* overload the operators + and -
* write a friend function sum which adds the real and imaginary parts of a complex object
4 (a) Explain the 'use case diagram'' When are such diagrams used ? What are the steps involved in drawing such diagrams ?
(b) Write a program in C++ to copy a file to another file using streams
5. Explain the following features of Object Oriented Programming. Your explanations should include examples. (10)
(i) Data abstraction
(ii) Code reusability
(iii) polymorphism
(iv) Exception handling
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - IGNOU
Enter a detailed keyword. Ex: Question Papers of Indira Gandhi National Open University MCA Ist Semester