Java with Python So-23
Java with Python So-23
EXAMINATION: FINAL
a. Dynamic
b. Architecture Neutral
c. Use of pointers
d. Object-oriented
a. JVM
b. JRE
c. JDK
d. JDB
1|P a ge
4. What does the expression float a = 35 / 0 return?
a. 0
b. Not a Number
c. Infinity
d. Run time exception
++z + y - y + z + x++
a. 24
b. 23
c. 20
d. 25
a. package
b. import
c. extends
d. export
2|P a ge
9. Given that Student is a class, how many reference variables and objects
are created by the following code?
10. Given,
a. 5
b. 10
c. 0
d. 100
13. Which of the following modifiers can be used for a variable so that it can
be accessed by any thread or a part of a program?
3|P a ge
a. global
b. transient
c. volatile
d. default
a. UTF-8
b. Default encoding of the host platform
c. UTF-12
d. None of the above
4|P a ge
c) Compilation
d) Encapsulation
i. Take three numbers and find the greatest among three numbers in Python
ii. Take one year and cheek leap year or not in Java
iii. Take the Length, Breadth and Width of two boxes and find volume using
Java
iv. Take one number and cheek even or odd using Python
5|P a ge