Need help about a course? |
|
Home / Test Papers / IGNOU / CS72 C++ and Object Oriented Programming CS72 C++ and Object Oriented Programming December 2005 | Ask a question Print this page |
BACHELOR IN COMPUTER APPLICATIONS
Term-End Examination
Time: 2 hours
Maximum Marks: 60
1. (a) Design and implement a class 'polynomial' that adds and subtracts two polynomials. Also, write the necessary constructors, destructors and overloaded functions for input-output. Write the appropriate main( ) function. (10)
(b) How is a library of user-defined functions or files made ? Explain this with the help of an example. (5)
(c) What are the advantages of reusability ? Also, list the constraints on development of a reusable code, with the help of an example. (5)
(d) What is abstraction in an object-oriented language ? Describe the important types of abstraction with the help of an example each. (5)
(e) What are exceptions in C++ ? How are they different from errors ? Explain exception handling with the help of an example. (5)
2. (a) Can we overload an assignment operator using friend function ? Justify your answer. (3)
(b) Explain the visibility modes for different members of base class in derived classes with the help of examples. (7)
3. Design and implement a stack as a class template. Also, write the main( )function to illustrate use of push and pop operations of stack for three datatypes : integer, float and complex, Write overloaded '<<' operator for complex number stack through friend function. Show the use of this function in main( ). Make suitable assumptions, if required. (10)
4. Define the following terms with an example of each : (10)
(a) Late binding
(b) Virtual function
(c) 'This' pointer
(d) Default parameter passing
5. (a) What is an activity diagram ? When do we use activity diagrams ? Give an example of an activity diagram. (5)
(b) What are the command-line arguments ? Explain their use with the help of an example. (5)
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - IGNOU
Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester