Oop Assignment QP

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

SARASWATHI VELU COLLEGE OF ENGINEERING

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)

You might also like