Search Header Logo

Math.random CSA quiz

Authored by Ayush Ghosh

Science

10th Grade

Used 13+ times

Math.random CSA quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What type of value does Math.random() return?

Int

int

Double

double

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the specific range of Math.random()

(0,1)

[0,1)

(0,10)

[0,1]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the range of (int) (Math.random() * 6) + 5

10

6

11

5

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the minimum of (int) (Math.random () * 20) + 1

0

20

1.0

1

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the formula for range?

max + min + 1

min - max + 1

max - min + 1

max - min - 1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Calculate the range with these vales:

max = 50

min = 27

23

23.0

24

25

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Sally is playing a game with her friend. They are both rolling dice to see who can win the $1 dollar prize. The winner of the game is determined by the 1st player rolling a dice and then the other player wins if they roll any number that is greater than the number the first player rolled. If Sally rolls a 2, which of the following random numbers include ALL the possible values that her friend must roll to win?

(int) (Math.random() * 4) + 3

(int) (Math.random() * 3) + 3

(int) (Math.random() * 6)

(int) (Math.random() * 6) + 1

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?