Multiple Choice
Which of the following expression yields an integer between 0 and 100, inclusive?
A) (int) (Math.random() * 100 + 1)
B) (int) (Math.random() * 101)
C) (int) (Math.random() * 100)
D) (int) (Math.random() * 100) + 1
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Write a complete program that prints numbers
Q2: What is i after the following for
Q3: Analyze the following code: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB2835/.jpg"
Q4: Analyze the following code. <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB2835/.jpg" alt="Analyze
Q5: Write a loop that computes (No need
Q6: How many times will the following code
Q8: What is the output of the following