0% found this document useful (0 votes)
42 views2 pages

Anna University B.E./B.Tech. Degree Examination, April/May 2015 Fifth Semester Electrical and Electronics Engineering CS2311-Object Oriented Programming Regulation 2008/2010

This document contains an exam for an Object Oriented Programming course, with 15 multiple choice questions covering topics like procedural vs object oriented programming, destructors, polymorphism, exceptions, file processing, byte code, packages, interfaces, and event driven programming. It also contains two programming problems on each of constructors/destructors, virtual functions, exception handling, file merging, array operations, and multithreading. The exam is for the 5th semester of an Electrical and Electronics Engineering degree from Anna University.

Uploaded by

ramya devi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Anna University B.E./B.Tech. Degree Examination, April/May 2015 Fifth Semester Electrical and Electronics Engineering CS2311-Object Oriented Programming Regulation 2008/2010

This document contains an exam for an Object Oriented Programming course, with 15 multiple choice questions covering topics like procedural vs object oriented programming, destructors, polymorphism, exceptions, file processing, byte code, packages, interfaces, and event driven programming. It also contains two programming problems on each of constructors/destructors, virtual functions, exception handling, file merging, array operations, and multithreading. The exam is for the 5th semester of an Electrical and Electronics Engineering degree from Anna University.

Uploaded by

ramya devi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

www.vidyarthiplus.

com

ANNA UNIVERSITY

B.E./B.Tech. DEGREE EXAMINATION, APRIL/MAY 2015

Fifth Semester

Electrical and ElectronicsEngineering

CS2311-Object Oriented Programming

Regulation 2008/2010

Time : Three hours

Maximum : 100 marks

Answer ALL questions

Part A

1. Differentiate Procedural programming and OO programming.


2. What is 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 Byte Code.
8. What is the advantage of using package in Java Programming?
9. What is meant by interface?
10. What is meant by event driven programming?

PART B

11. (a). Explain the Object Oriented programming concepts.


OR
(b). Write a C++ program for the following:
Rameshsbasicsalaryisinputthroughthekeyboard.Hisdearnessallowanceis
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.
12. (a). Explain the use of Virtual Functions with an example program.
OR
(b).Writeaprogramtooverload+operatortoperformstringconcatenation
operation and polynomial addition operation.
13. (a). 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
(b). 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.
14. (a). Write a program in Java that interchanges the odd and even components of an

www.vidyarthiplus.com
www.vidyarthiplus.com

array in Java.
OR
(b). Write a program in Java to sort a set of names stored in an array in alphabetical
order.
15. (a). Explain with an example the exceptional handling feature in Java.
OR
(b). With an simple program explain the multithreading concept in Java.

www.vidyarthiplus.com

You might also like