Solved

Which Statement Below Could Be Used to Simulate the Outputs

Question 27

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions