Saturday 13 April 2013

// // Leave a Comment

OBJECT ORIENTED PROGRAMMING(C++ AND JAVA)-MARCH-2008


THIRD SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/TECHNOLOGY-MARCH, 2008
OBJECT ORIENTED PROGRAMMING(C++ AND JAVA)
PART-A
(Maximum marks:15)
v  Answer the following questions in one or two sentences:
1.Define object.
2.What is meant by dynamic initialization of variable?Write one example.
3.What is function overloading?
4.What is an abstract class?
5.What is this pointer?
6.What is the use of delete operator?
7.List any three escape sequences in Java.
8.What is byte code?
9.Define thread.
10.List three services provided by servlets.
PART-B
(Maximum marks:60)
(Answer one full question from each unit)
Unit-1
v  (a)What is data abstraction and encapsulation?Write examples in C++.(6)
          (b)Write two examples with purpose for each of the following:
(i)member dereferencing operators.
(ii)memory management operators.
(iii)bitwise operators.(6)
OR
v  (a)What is OOP?List any three features of OOP.Write two benefits of OOP.(6)
(b)Explain with example the declaration and accessing of array of objects.(6)

Unit-2
v  (a)What is inheritance?Explain with example multilevel inheritance.(6)
(b)Write overloaded function to find the area of a circle,rectangle and triangle.(6)
         
OR
v  (a)Compare public,protected and private inheritance.(6)
          (b)Explain with example binary operator overloading using:
                 (i)member function         (ii)friend function.(6)
UNIT-3
v  (a)What is the use of the function open()?Explain the parameters of open().(6)
          (b)Write the syntax of defining pointers to objects.Which are the methods of accessing member functions using pointers to objects?Write examples.(6)
OR
v  (a)Explain the use of tellg()and seek g()functions in C++.Write the method to find the size of a file using these functions.(6)
          (b)Write a C++ program to read a text file and display it.(6)
UNIT-4
v  (a)Write any six types of operators in java with examples for each type.(6)
(b)Explain inner classes with example.(6)
OR
v  (a)Explain how arrays are declared and used in Java.(6)
          (b)Explain constructors in Java with example.(6)
UNIT-5
v  (a)Explain the way of handling a division by zero exception in Java.(6)
          (b)Explain multithreading in Java with an example.(6)
OR
v  (a)Explain the use of throw statement in Java with an example.(6)
(b) Write a Java program to read a stream of bytes from the keyboard and write them into a file.(6)
        

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