OBJECT ORIENTED PROGRAMMING NOV/Dec 2008 Fifth semester EEE

B.E/B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2008.
Fifth Semester
Electrical and Electronics Engineering
CS1261 – OBJECT ORIENTED PROGRAMMING
(Common to B.E. Instrumentation and control Engineering and Electrical and Instrumentation Engineering)
(Regulation 2004)
Time: Three hours Maximum: 100 marks
Answer ALL questions.
PART A-(10×2=20 marks)
1. Differentiate explicit and implicit type casting.
2. State the significance of online functions.
3. Define static data members. Give example for static members and array of objects.
4. Define copy constructor.
5. List all types of inheritances.
6. Name all operators that cannot be overloaded in c++.
7. List all data types in java.
8. Define classes and methods in Java.
9. What is the purpose of package? Name some packages.
10. Define interface.






PART B-(5×16=80 marks)
11. (a) Explain the structure of c++ program with an example.
Or
(b) Explain function prototyping and function overloading with example programs.
12. (a) Explain friend function, passing and returning objects with example program.
Or
(b) Explain parameterized constructor and constructor overloading with example program.
13. (a) Writer a c++ program to implement complex number addition,subtraction and multiplication using binary operator overloading.
Or
(b) Explain hybrid inheritance and virtual classes/members with example program.
14. (a) Explain constants,variables and operators in Java. Write a simple java program to concatenate two strings.
Or
(b) Explain array declaration, initialization and use in Java. Write a java program to implement matrix multiplication.
15. (a) Explain multithreading with example program by extending thread class.
Or
(b) Explain java applet programming with example.
Previous
Next Post »