What does the random function in Python do?
Python Pre-defined Functions

Quiz
•
Computers
•
9th Grade
•
Medium
Tracy Mutter
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Generates random numbers
Generates random characters
Generates random letters
Generates random strings
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the len function in Python do?
The len function returns the index of the first occurrence of a specified value in a list.
The len function returns the sum of all elements in a list.
The len function returns the number of items in an object.
The len function returns the length of a string.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the round function in Python do?
The round function in Python rounds a number to a specified number of decimal places or to the nearest whole number.
The round function in Python returns the square root of a number.
The round function in Python generates a random number between two given numbers.
The round function in Python converts a number to a string.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of len('Hello World')?
10
5
11
12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of round(3.14159, 2)?
3.13
3.15
3.14
3.1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to generate random numbers in Python?
random.random
random.randint
random.choice
random.shuffle
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of round(2.5)?
2
3
2.5
0
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Lists, Subroutines and Sequence in Pseudocode - Python

Quiz
•
1st - 11th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
15 questions
Gateway Level 3 Python Quiz 3

Quiz
•
9th - 12th Grade
10 questions
Mastering String Operations in Python

Quiz
•
9th Grade - University
12 questions
Python Demo Quiz Set1

Quiz
•
9th - 12th Grade
10 questions
Pyhton

Quiz
•
9th - 10th Grade
10 questions
Python Concepts

Quiz
•
9th Grade
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade