Saturday 13 April 2013

// // Leave a Comment

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


THIRD  SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/TECHNOLOGY-OCTOBER, 2011
OBJECT ORIENTED PROGRAMMING (C++  AND JAVA)
PART-A
(Maximum marks:15)
v  Answer the following questions in one or two sentences:
1.What is an object?
2.What is a’default constructor’?
3.Define function overloading.
4.What is hierarchial inheritance?
5.What is the use of indirection operator’8’in C++?
6.Define stream.
7.What is Unicode?
8.What is a’package’in Java?
9.What is multi threading?
10.Name the base class for character streams for input operation in Java.
PART-B
(Maximum marks:60)
(Answer one full question from each unit)
Unit-1
v  (a)Explain about private,public and protected access specifiers.(6)
          (b)What is a friend function?What are its special characteristics?.(6)
OR
v  (a)Write a short note on:
(i)Inline function (ii)Polymorphism.(6)
(b)Describe passing objects to a function.(6)

Unit-2
v  (a)Write a C++ program to overload the binary operator’+’to add two matrices of order’m*n’(6)
(b)Explain hybrid inheritance with an example(6)
         
OR
v  (a)List the rules for overloading operators.(6)
          (b)Explain how multiple inheritance is implemented in C++(6)
UNIT-3
v  (a)Explain the use of’new’and ‘delete’operators with an example.(6)
          (b)Write a C++ program to accept the names of 10 students from the keyboard and write those names to a file.After creating the file,read the contents of the file and display it.(6)
OR
v  (a)What are the different ‘modes’of opening a file in C++?Explain.(6)
          (b)Write a short note on:
(i)Dynamic memory allocation
(ii)’this’pointer.(6)
UNIT-4
v  (a)Java is compiled and interpreted.Explain.(6)
(b)Write a Java program to sort a set of’N’integer numbers in ascending order.(6)
OR
v  (a)What are command line arguments?Explian how they are used in Java.(6)
          (b)Write a short note on:
(i)’extends’keyword
(ii)abstract class.(6)
UNIT-5
v  (a)Explain about the exception handling mechanism in Java.(6)
          (b)Define an applet.Compare application programs and applets.(6)
OR
v  (a)Distinguish between Byte streams and character streams in java.(6)
(b)Write a short note on:
(i)Runnable interface
(ii)Servlet.(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