This document outlines an assignment for an Object Oriented Programming course covering topics in C++ and Java. It includes two parts: Part A contains 10 short answer questions and Part B contains 5 programming questions requiring longer responses. The questions cover topics such as function templates, exception handling, inheritance, arrays, complex numbers, and more. Students have 3 hours to complete the assignment worth a total of 100 marks.
This document outlines an assignment for an Object Oriented Programming course covering topics in C++ and Java. It includes two parts: Part A contains 10 short answer questions and Part B contains 5 programming questions requiring longer responses. The questions cover topics such as function templates, exception handling, inheritance, arrays, complex numbers, and more. Students have 3 hours to complete the assignment worth a total of 100 marks.
This document outlines an assignment for an Object Oriented Programming course covering topics in C++ and Java. It includes two parts: Part A contains 10 short answer questions and Part B contains 5 programming questions requiring longer responses. The questions cover topics such as function templates, exception handling, inheritance, arrays, complex numbers, and more. Students have 3 hours to complete the assignment worth a total of 100 marks.
This document outlines an assignment for an Object Oriented Programming course covering topics in C++ and Java. It includes two parts: Part A contains 10 short answer questions and Part B contains 5 programming questions requiring longer responses. The questions cover topics such as function templates, exception handling, inheritance, arrays, complex numbers, and more. Students have 3 hours to complete the assignment worth a total of 100 marks.
DEPARTMENT OF ELECTRICALAND ELECTRONICS ENGINEERING
ASSIGNMENT FOR UNIT III&IV Sub code/name:CS6456/OBJECT ORIENTED PROGRAMMING Maxmarks:100 Sem/Year : IV/II Time : 3 Hrs Part-A 10X2=20 1. What is difference between a function template and template function? 2. What is STL, Standard Template Library? 3. What are file pointers? Describe get()pointers and put()pointers. 4. Define interface 5. Compare overloading and overriding. 6. What is JVM? 7. What is API PACKAGE? 8. What are Exceptions? 9. What is wait(), notify(), notifyall()? 10. Justify the statement Java is platform independent Part-B 5X16=80 11a. What is multiple inheritances? Discuss the syntax and rules of multiple inheritances in C++. How can you pass parameters to the constructors of base classes in multiple inheritances? Explain with suitable example (16) or 11b. Describe about handling with example program (16) 12a i. Explain the components of standard template library in detail. (8) 12 a ii Write a C++ program to generate user defined exception whenever user inputs are odd number(8) or 12b. Explain about implementation of run time polymorphism in C++ with an example. (16) 13a. Explain about exception handling with an example program.(16) or 13b. Write a C++ program to illustrate the concept of hierarchical inheritance. (16) 14a. Write a java program to create two single dimensional arrays, initialize them and add them; store the result in another array. . (16) or 14b. Write a java program to find the maximum number of given array. (16) or 15a. Create a complex number class in java. The class should have a constructor and methods to add, subtract and multiply two complex numbers and to return the real and imaginary parts.(16) or 15b. Write a java class called student with name, marks of 3 subjects and total marks. Write another class name calculate that gets marks of the student and calculates the total marks and displays the result. (pass and fail). (16)