To create a random number between –10 and 10 you would use:
CP Module 2 Quiz Review

Quiz
•
Other
•
10th - 12th Grade
•
Easy
Marcia Bernas
Used 24+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print (random.random(-10))
print (random.randint(-10, 10))
print (random.randint( 10) -10)
print (random.random() -20)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To turn user input into an integer, you need the ______________ function.
float
int
str
val
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable name is the best to hold the area of a rectangle?
AREA
a
1A
area
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Consider the following code:
c = 500
c = c + 1
c = c + 1
c = c + 1
print (c)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
print (16 % 8)
0
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Python function?
int
str
input
dec
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code is necessary for random numbers to work in Python?
import random
import integer
x = randomint
x = int(input ("Enter a number"))
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Bilan DS Avril

Quiz
•
10th Grade
20 questions
2020 Year 11 Psychology - readiness task

Quiz
•
11th - 12th Grade
21 questions
Review on expected value and binomial probability

Quiz
•
11th - 12th Grade
20 questions
Research Methods

Quiz
•
10th Grade
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
14 questions
advertising

Quiz
•
5th Grade - University
13 questions
Introduction to Python Programming Quiz 9E

Quiz
•
10th Grade - University
20 questions
PRACTICAL RESEARCH 2

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University