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 II II CSE Oops through Java Aug/sep 2007 set I Question paper
|
|
|
Code No: R05220402 Set No. 1 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) java is freeform language. Comment (b) Describe in detail the steps involved in implementing a stand-alone program. (c) What are command line arguments? How are they useful? [4+6+6] 2. (a) How does String class dier from the StringBuer class? (b) Write program to do the following: [6+10] i. To output the question “who is the inventor of java”? ii. To accept an answer iii. To print out “Good” and then stop, if the answer is correct. iv. To output the message “try again”, if the answer is wrong v. To display the correct answer when the answer is wrong even at the third attempt. 3. Create an inheritance hierarchy of Rodent: Mouse, Gerbil, Hamster, etc. In the base class, provide methods that are common to all Rodents, and override these in the derived classes to perform dierent behaviors depending on the specific type of Rodent. Create an array of Rodent, fill it with dierent specific types of Rodents, and call your base-class methods. Explain the output. [16] 4. Write a program to create a class with a non default constructor and no default constructor. Create a second class that has a method which returns a reference to the first class. Create the object to return by making an anonymous inner class that inherits from the first class. [16] 5. In JAVA, is exception handling implicit or explicit or both. Explain with the help of example java programs. [16] 6. (a) How event driven programming is dierent from Procedure oriented program- ming. (b) Give overview of Java’s event handling mechanism. [6+10] 7. What are containers? List various containers. Explain the usage of JPanel with example. [4+4+8] 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.