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 December 2006 | Ask a question Print this page |
BACHELOR IN COMPUTER APPLICATIONS
Term-End Examination
Time: 2 hours
Maximum Marks: 60
December 2006
1. (a) Write five differences between Procedural and Object Oriented Programming. (5)
(b) Define operator overloading. Is it different from polymorphism ? Justify your answer. Write four such operators which cannot be overloaded. (5)
(c) Explain the purpose of the following with the help of an example for each: (4)
(i) CLASS Diagram
(ii) Activity Diagram
(d) Write a program in C++ to generate Fibonacci Series by using recursion (6)
(e) Write a program in C++ to find the sum of two entered complex numbers from different classes and display the sum using a common friend function. (10)
2. (a) Explain different types of inheritance with the help of suitable examples. What status does the data of base class get, when they are inherited to a derived class ? (7)
(b) Explain "this" pointer by an example. (3)
3. (a) Define copy constructor. ExPlain its significance. Under which condition is it invoked ? Support your answer with an example. (5)
(b) Write a program in C++ which concatenates two strings by operator overloading. (5)
4. (a) Differentiate between Private, Public and Protected data members of the class using examples. (6)
(b) Write a C++ program to find the sum of the series S : 1 + 3 + 5 + + n . (4)
5. Explain the following terms with examples:
(i) Exception handling
(ii) Template
(iii) Virtual function
(iv) Dynamic binding
(v) Macros
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