Quiz4 2
Quiz4 2
World
JavaWorld (*)
Java
Java World
Correct Correct
True (*)
False
JavA World!
Java World!
JAva World!
Correct Correct
True
False (*)
True (*)
False
Correct Correct
True (*)
False
Correct Correct
False
Correct Correct
True (*)
False
Correct Correct
True (*)
False
10. Which class is used to generate random numbers? Mark for Review
(1) Points
Double
Random (*)
Number
Integer
Correct Correct
11. Which values are returned by the method nextBoolean(); Mark for Review
(1) Points
An integer value.
Nothing is returned.
Correct Correct
12. Which two are the features of the Math class? Mark for Review
(1) Points
You don�t have to worry about the data type returned from a Math method.
Common math functions like square root are taken care of in the language. (*)
Correct Correct
13. All the methods in the Math class are static methods. Mark for
Review
(1) Points
True (*)
False
Correct Correct
14. What is the package name which contains Math class? Mark for
Review
(1) Points
java.lang (*)
java.net
java.io
java.awt
Correct Correct
True (*)
False
Correct Correct