You are on page 1of 2
oS Reg. No. : if T | Question Paper Code : 71389 B.E/B.Tech. DEGREE EXAMINATION, APRIL/MAY 2015, Fifth Semester Electrical and Electronics Engineering CS 2311/CS 59/10133 EE 604/10133 CS 304 — OBJECT ORIENTED ~ PROGRAMMING (Common to Electronics and Instrumentation Engineering and Instrumentation and Control Engineering) (Regulation 2008/2010) ‘Time : Three hours Maximum = 100 marks Answer ALL questions. PART A — (10 x 2= 20 marks) 1. _ Differentiate Procedural programming and OO programming. 2. What is a destructor? 3. Give the use of scope resolution operator. 4, What is meant by runtime polymorphism? 5. What is the use of Try, Throw and Catch statements? 6. Give any five functions used for file processing. 7. Give the significance of Byte Code. 8. What is the advantage of using packages in Java Programming? 9. What is meant by interface? 10. What is meant by event driven programming? 11. 12, 13. 14. 16. (@) ) (a) ) (@) ) @ (b) @ ) PART B— (5 x 16 = 80 marks) Explain the Object Oriented programming concepts. Or Write a C + program for the following: Ramesh’s basic salary is input through “the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. Use constructors, Destructor and Member Functions. Explain the use of Virtual Functions with an example program. Or Write a program to overload “+” operator to perform string concatenation operation and polynomial addition operation. Write a program to find the factorial value of any number entered through the keyboard. Include any two exceptional handling in the program and explain how the exceptions are handled. Or Write a program that merges lines alternately from two files and writes the results to new file. If one file has less number of lines than the other, the remaining lines from the larger file should be simply copied into the target file. Write a program in Java that interchanges the odd and even components of an array in Java, Or Write a program in Java to sort a set of names stored in an array in alphabetical order Explain with an example the exceptional handling feature in Java. Or With an simple program explain the multithreading concept in Java. 2 71389

You might also like