Saturday 13 April 2013

// // Leave a Comment

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


THIRD SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/TECHNOLOGY-MARCH, 2010
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.Define virtual base class.
3.What is the difference b/w ios::in and ios::out?
4.What is an abstract class?
5.What is the use of new operator?
6.What is manipulators?
7.Define thread.
8.What is an exception?
9.List any three features of Java.
10.What is JVM?
PART-B
(Maximum marks:60)
(Answer one full question from each unit)
Unit-1
v  (a)Explain default constructor,parameterized constructor and overload constructor with examples.(6)
          (b)Define class.Write five features of class.(6)
OR
v  (a)What is meant by object as function arguments?Explain with an example.(6)
(b)Explain default arguments with example.(6)

Unit-2
v  (a)Explain matrix addition using operator overloading.(6)
(b)Write a CPP program to find the area of square and triangle using function overloading.(6)
         
OR
v  (a)Explain single inheritance,multilevel inheritance,multiple inheritance.(6)
          (b)A class ‘student ‘stores the roll number,class’teststores the marks obtained in two subjects class ‘result’contains the total marks obtained in the test.The class’result’can inherit the details of the marks obtained in the test and the roll number of students.Write a CPP program to implement the above inheritance.(6)
UNIT-3
v  (a)Explain if stream,of stream and f stream.(6)
          (b)Write a CPP program to read data from a file and display it.(6)
OR
v  (a)Write a program to read four number and store in a file using read()and write()function.(6)
          (b)Write a program to exchange two numbers using pointer.(6)
UNIT-4
v  (a)Java is an ‘Interpreter as well as compiler’-justify the statement.(6)
(b)Explain in detail:”Public static void main(String arys[])”(6)
OR
v  (a)What is Byte code?Explain the portability of Java.(6)
          (b)Illustrate classes and methods in Java with example.(6)
UNIT-5
v  (a)Explain any two methods used to define a thread with example.(6)
          (b)Explain about built –in exceptions in Java and give examples.(6)
OR
v  Compare application programs,applet and servlets with suitable example.(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