Multiple Choice
Which statement below could be used to simulate the outputs of rolling a six-sided die? Suppose randomNumbers is a Random object.
A) 1 + randomNumbers.nextInt( 6 ) ;
B) 1 + randomNumbers.nextInt( 2 ) ;
C) 6 + randomNumbers.nextInt( 1 ) ;
D) 3 + randomNumbers.nextInt( 3 ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following is not a
Q2: Variables should be declared as fields only
Q6: The java.text package contains classes for manipulating
Q7: An enumeration is a special class that's
Q9: Method calls cannot be distinguished by _.<br>A)
Q14: Which of the following promotions of primitive
Q20: Java uses class _ to represent colors
Q22: Information is passed to a method in
Q24: The identifiers in an enumeration _.<br>A)must be
Q30: A well-designed method _.<br>A)performs multiple unrelated tasks<br>B)repeats