Search Header Logo

012. A - D Extra Help

Authored by Robert Giordano

Computers

9th - 12th Grade

Used 1+ times

012. A - D Extra Help
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

3 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The first step we need to do in order to generate a random number is to import the random module. To do this we type _____________

2.

DRAG AND DROP QUESTION

1 min • 1 pt

Fill in the blanks to generate a number between 1 and 10.

import random

num = ​ (a)   .​ (b)   (​ (c)   ,​ (d)   )

print(num)

random
randint
1
10
randrange
0
9
11

3.

DRAG AND DROP QUESTION

1 min • 1 pt

Drag and drop to print out a number in the range of 1, 100 with step value of 3

import random

num = ​ (a)   .​ (b)   (​ (c)   ,​ (d)   ,​ (e)   )

random
randrange
1
101
3
0
100
randint

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?