Saturday 13 April 2013

// // Leave a Comment

OBJECT ORIENTED PROGRAMMING (C++ AND JAVA)-OCTOBER-2010


THIRD SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/TECHNOLOGY-OCTOBER, 2010
OBJECT ORIENTED PROGRAMMING (C++  AND JAVA)
PART-A
(Maximum marks:15)
v  Answer the following questions in one or two sentences:
1.Define polymorphism
2.What is meant by reference variable?Give syntax.
3.Define base class and derived class.
4.Differentiate new and delete.
5.Define I/P stream and O/P stream.
6.Which are the three kinds of commands in Java?
7.list three merits of Java.
8.Define socket.
9.Define thread.
10.Write any three types of operator in Java with example.
PART-B
(Maximum marks:60)
(Answer one full question from each unit)
Unit-1
v  (a)What is a constructor?Explain six special characteristics of constructor.(8)
          (b)Explain copy constructor with an example.(4)
OR
v  (a)Explain the basic concepts of OOPs.(6)
(b)Explain the benefits of OOP.(6)

Unit-2
v  (a)What is operator overloading?Explain unary operator overloading with an example(6)
(b)What is single inheritance?Explain with an example.(6)
         
OR
v  (a)Explain binary operator overloading with an example.(6)
          (b)Explain multiple inheritance with an example.(6)
UNIT-3
v  (a)Define pointers.Explain the advantages of pointers.(6)
          (b)Explain the use of this pointer with an example.(6)
OR
v  Explain the following file functions with examples:
v  (i)write() (ii)getline()    (iii)get()     (iv)put()         (12)
UNIT-4
v  (a)Discuss about diff jumb statements java with example(6)
(b)Explain inner classes with examples.(6)
OR
v  What is abstract class?How can implement an abstract class,explain with example?(12)
UNIT-5
v  (a) Explain three exception handling statements in Java.(6)
          (b)Explain multithreading in Java with example.(6)
OR
v  Write a Java program to read a stream of bytes from a file,and copy them into another file and display it on the monitor.(12)
        

Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments:

Post a Comment