Sessional Test-i Jpr 2007-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 Sessional Test-i Jpr 2007-2008 as PDF for free.

More details

  • Words: 335
  • Pages: 1
K. K. WAGH POLYTECHNIC, NASHIK - 3. DEPARTMENT OF INFORMATION TECHNOLOGY. SESSIONAL THEORY TEST- 1 (OCT 2007) CLASS: TYIF. SUB: JAVA PROGRAMMING (JPR - 1526)

TIME: 2 Hrs. MARKS: 50.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Instructions:1) All questions are compulsory. 2) Illustrate your answers with neat sketches wherever necessary. 3) Use of Non programmable Electronics Calculator is permissible. 4) Figures to the right indicate full marks. 5) Assume suitable additional data, if necessary.

Q.1 Attempt any SIX of the following: a)

b) c) d) e) f) g) h)

18

Explain how Java is different from other programming languages. Explain dynamic method dispatch. Describe the use of ‘this’ and ‘super’ in terms of inheritance. What is the necessity of break, continue and return statements in programming languages. Explain any four Short wrapper class methods. What is the use of protected finalize () method? Explain the concept of method overloading in terms of Java. Give the suitable example. Describe differences between public and default access.

Q.2 Attempt any FOUR of the following:

16

a) b)

Explain how Vector is used as a dynamic array? Explain the statement:

c)

public static void main (String args[]) Give and explain syntax of any two Integer as well as Boolean

d) e) f)

class methods. Describe the practical use of try-catch-finally with appropriate example. Write a program to find the entered number is armstrong or not? Use command – line arguments. What are different JDK tools? Describe their functions.

Q.3 Attempt any TWO of the following: a)

b) c)

16

Describe in detail. String compare methods ii) throws clause i) throw statement iv) Constructor overloading. iii) Write a program to determine if the entered year is leap or not. Create a user defined method as, boolean leap (int num). Explain how interface can be used to implement multiple inheritance? * ALL THE BEST *

Related Documents

Testi
October 2019 21
Pres Jpr
May 2020 5
Jpr 02
June 2020 3