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 II Question paper
|
|
|
Code No: R05220402 Set No. 2 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. (a) When dealing with very small or very large numbers, what steps would you take to improve the accuracy of the calculations (b) What are symbolic constants? How are they useful in developing programs? (c) Write a program to determine the sum of the following harmonic series for a given value 1 + 1/2 + 1/3 + ..... + 1/n The value of n should be given interactively through the keyboard. [4+4+8] 2. Briefly explain following: (a) final & this keywords (b) garbage collection (c) passing parameter-call by value (d) Overloading methods & Constructors. [4+4+4+4] 3. What are the types of inheritances in java? Explain each of them in detail. [16] 4. Write a program create an interface U with three methods. Create a class A with a method that produces a reference to a U by building an anonymous inner class. Create a second class B that contains an array of U. B should have one method that accepts and stores a reference to a U in the array, a second method that sets a reference in the array (specified by the method argument) to null and a third method that moves through the array and calls the methods in U. In main( ), create a group of A objects and a single B. Fill the B with U references produced by the A objects. Use the B to call back into all the A objects. Remove some of the U references from the B. [16] 5. (a) Is it possible to achieve true parallelism using multithreading. What are the limitations in it? (b) What is the role of priorities in multithreading. What are its limitations? How do you set and get priority values for threads in Java. [6+10] 6. (a) Define Graphics context. How do you obtain graphics context. (b) Explain in brief dierent drawing functions of Java. [6+10] 7. What is JFC? Explain the dierences between JTextArea, JTextComponent, JTextField with examples. [4+12] 8. (a) Briefly explain String class. (b) Write a program to count the frequency of words, characters in the given list of text. [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.