Download Model question papers & previous years question papers
|
Posted By: yamini Member Level: Gold Posted Date: 10 May 2008
|
2007 Jawaharlal Nehru Technological University B.Tech Computer science and engineering II II CSE Oops through Java Aug/sep 2007 set III Question paper
|
|
|
Code No: R05220402 Set No. 3 II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007 OOP THROUGH JAVA ( Common to Electronics & Communication Engineering, Computer Science & Engineering, Information Technology, Computer Science & Systems Engineering, Electronics & Telematics and Electronics & Computer Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ? ? ? ? ? 1. Write a program that will compute the following series: (a) 1/1 + 1/2 + 1/3 + ...... + 1/n (b) 1/1 + 1/2 + 1/2 2 + ....... + 1/2n. [8+8] 2. (a) What is class? How does it accomplish data hiding? (b) How do classes help us to organize our programs? (c) Compare and contrast overloading and overriding methods. [4+4+8] 3. What are the types of inheritances in java? Explain each of them in detail. [16] 4. Prove that the fields in an interface are implicitly static and final. [16] 5. (a) Give the Class hierarchy in Java related to exception handling. Briefly explain each class. (b) What is the necessity of exception handling? Explain exception handling taking “divide-by-zero” as an example. [6+10] 6. (a) Why creating a subclass of Frame is preferred over creating an instance of Frame when creating a window. (b) Explain the steps in creating a subclass of frame with the help of examples. [4+12] 7. Briefly explain the components of AWT. [16] 8. (a) How does Random class generate pseudo random numbers? (b) Write a program to generate a set of random numbers. Find its sum and average. The program should also display * based on the random numbers generated. [8+8]
Return to question paper search
|
|
|
Submit Previous Years University Question Papers and
make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.