Jpr Preliminary Exam - 2008

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Jpr Preliminary Exam - 2008 as PDF for free.

More details

  • Words: 423
  • Pages: 1
K. K. Wagh Polytechnic, Nashik – 3 Preliminary Examination November – 2008 Class Duration

:-5/C : - 3 Hours

Branch: - IF

Subject Code: - 9113 Max. Marks : - 80

=======================================================================================

Instructions to candidate:1) All questions are compulsory. 2) Assume suitable additional data, if necessary. 3) Use proper writing and presentation skill.

Q.1 a) b) c) d) e) f)

Attempt any Four of the following: Describe the process of garbage collection. Why java is more popular for internet programming? What is inheritance? What are its types? Draw conceptual diagrams of it. Explain how to set and get the priority of threads. Describe how to create a thread by implementing Runnable interface. Differentiate between Applet and application.

16

Q.2 a) b) c) d)

Attempt any Three of the following: What is Java Virtual Machine? Explain meaning of bytecode. Describe do-while loop with an example. How Java achieves run-time polymorphism. Describe with proper example. Write a program which will find the sum of digits of a number entered by user.

12

Q.3 Attempt any Three of the following: a) Describe the methods of inserting and deleting an element in a Vector. b) Describe the following Integer class methods: i. parseInt( ) ii. compareTo( ) c) Explain, how to create multiple inheritance using interface? d) State and explain different visibility specifiers used in Java.

12

Q.4 a) b) c) d)

Attempt any Three of the following: What is serialization? Describe with appropriate example. How to open the file using FileReader and FileInputStream classes? Illustrate. Elaborate the use of command line arguments. Give suitable example. Is it possible to inherit the interface? How?

12

Q.5 a) b) c) d)

Attempt any Three of the following: What do you mean by thread? How to achieve multithreading? Describe try-catch-finally with its practical applications. Write a program to illustrate the creation of user defined exception. How do we pass parameters to an applet? Describe.

12

Q.6 Attempt any Two of the following: 16 a) Write a program to create to display 1 to 10 numbers on the applet with an interval of 100 milliseconds. b) Write a program to create 2 threads, where one thread will print odd numbers and other will print even numbers. Create your classes by extending Thread class only. c) Write a program to define a class ‘Person’ having data members: name, age and qualification. Define appropriate methods or constructors to initialize and display the values of these data members. Input values for three objects and determine the qualification of person who is youngest. ----------

Related Documents