Which function from the random module returns a random number between 0 and 1 (excluding 1)?

Вопросы по модулю random

Quiz
•
Computers
•
12th Grade
•
Hard
Ерасыл Тлеудин
Used 5+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
randint
random
randrange
choice
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function selects a random element from a list?
randint
sample
choice
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the shuffle function do?
Shuffles the list in place
Selects a random element from the list
Returns a random number between 0 and 1
Returns a list of random elements
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function returns a random integer in the range [a, b] (including both ends)?
randint
random
sample
choices
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function randrange return?
A random integer between a and b (inclusive of b)
A random integer between a and b (exclusive of b)
A random element from a list
A list of random numbers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function allows you to select several unique random elements from a list?
sample
choice
choices
shuffle
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which function can you specify weights for selecting elements from a list?
choices
choice
sample
randrange
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
QuickBooks Online Exam Review

Quiz
•
9th - 12th Grade
20 questions
list 6th

Quiz
•
7th Grade - University
20 questions
Python

Quiz
•
12th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
20 questions
Week 12 - ECS

Quiz
•
12th Grade
23 questions
Python Functions

Quiz
•
12th Grade
20 questions
Lists in Python

Quiz
•
11th - 12th Grade
20 questions
M2.Variable y Expresiones

Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade