Multiple Choice
Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a Random object.
A) randomNumbers.nextInt( 7 ) ;
B) randomNumbers.nextInt( 2 ) ;
C) randomNumbers.nextInt( 1 ) ;
D) randomNumbers.nextInt( 25 ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: Which is a correct static method call
Q8: Stacks are known as _ data structures.<br>A)
Q14: A static method can _.<br>A)call only other
Q22: Which statement is false?<br>A)If a method does
Q23: Any field declared with keyword _ is
Q25: When an object is concatenated with a
Q29: Which of the following methods are overloaded
Q31: You can set a Random object's seed
Q34: An overloaded method is one that _.<br>A)has
Q37: To declare a method as static,place the