Você está na página 1de 2

www.Vidyarthiplus.

com
Reg. No. :

Question Paper Code : 11265


B.E./B.Tech. DEGREE EXAMINATION, APRIL/MAY 2011 Fifth Semester

Electrical and Electronics Engineering

CS 2311 OBJECT ORIENTED PROGRAMMING

(Common to Instrumentation and Control Engineering and Electronics and Instrumentation Engineering) (Regulation 2008) Time : Three hours Answer ALL questions. PART A (10 2 = 20 marks) 1. 2. 3. 4. 5. 6. 7. 8. 9. Define abstraction and encapsulation.

When will the destructors be called? Is it implicit or explicit? List the operators that cannot be overloaded. What are pure virtual functions? Where are they used? Define Exception. Give example. State the purpose of namespaces with an example. What is byte code? Mention its advantage. What are packages?

Define interface. State its use. What is thread? How does it differ from a process? PART B (5 16 = 80 marks)

10.

21

www.Vidyarthiplus.com

21

4 21
Maximum : 100 marks

www.Vidyarthiplus.com
11. (a) Explain in detail about Class, Objects, Methods and Messages. Or (b) Write a C++ program to define overloaded constructor to perform string initialization, string copy and string destruction. Write a C++ program to implement C = A + B , C = A B and C = A B where A , B and C are objects containing a int value (vector). Or (b) 13. (a)

12.

(a)

Explain run time polymorphism with example program in C++.

Explain the different types of streams and various formatted I/O in C++. Or

(b) 14. (a)

Explain the various file handling mechanisms in C++.

(b)

Write a java program to perform all string operations using the String class. Explain in detail about the inheritance mechanism in Java with example programs. Or

15.

(a)

(b)

Explain with example program, exception handling in java.

21

4
2

21
Or

Write a java program to create two single dimensional arrays, initialize them and add them; store the result in another array. .

www.Vidyarthiplus.com

4 21
11265

Você também pode gostar