You are on page 1of 2

www.Vidyarthiplus.

com
Reg. No. :

4
pa
ul2
.c 1
om

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)

in

(Regulation 2008)

Maximum : 100 marks

ej

Time : Three hours

21
r

Answer ALL questions.

fro
4m

PART A (10 2 = 20 marks)


Define abstraction and encapsulation.

2.

When will the destructors be called? Is it implicit or explicit?

3.

List the operators that cannot be overloaded.

4.

What are pure virtual functions? Where are they used?

5.

Define Exception. Give example.

State the purpose of namespaces with an example.

nl
o

6.

ad
21 e
d

1.

What is byte code? Mention its advantage.

8.

What are packages?

9.

Define interface. State its use.

10.

What is thread? How does it differ from a process?

do
w

7.

PART B (5 16 = 80 marks)

www.Vidyarthiplus.com

www.Vidyarthiplus.com
11.

(a)

Explain in detail about Class, Objects, Methods and Messages.


Or

12.

Write a C++ program to define overloaded constructor to perform


string initialization, string copy and string destruction.

(a)

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).

4
pa
ul2
.c 1
om

(b)

Or
(b)
13.

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

(a)

Explain the different types of streams and various formatted I/O in


C++.

in

Or

(a)

Write a java program to create two single dimensional arrays,


initialize them and add them; store the result in another array. .

21
r

14.

Explain the various file handling mechanisms in C++.

ej

(b)

fro
4m

Or

15.

Write a java program to perform all string operations using the String
class.

(a)

Explain in detail about the inheritance mechanism in Java with


example programs.

ad
21 e
d

(b)

Explain with example program, exception handling in java.

do
w

nl
o

(b)

Or

www.Vidyarthiplus.com

11265

You might also like