Python Programming Random Quiz

Quiz
•
Computers
•
11th Grade
•
Easy
Standards-aligned
Grit and Motivation
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is the result of: `type(3.5)`?
int
float
string
list
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to generate a random number between 1 and 10 in Python?
random.range(1, 10)
random.randint(1, 10)
random.random(1, 10)
random.number(1, 10)
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to import the random module in Python?
import random
#import random
import random as r
include random
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type?
String
Tuple
List
Integer
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of `print(type(True))`?
int
bool
string
float
Tags
DOK Level 1: Recall
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function from the random module is used to shuffle the elements of a list in place?
random.shuffle()
random.randint()
random.choice()
random.random()
Tags
DOK Level 1: Recall
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a variable `x` with the value `10`?
int x = 10
x = 10
var x = 10
x := 10
Tags
DOK Level 1: Recall
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
16 questions
Python programming

Quiz
•
6th - 12th Grade
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
15 questions
Словники в Python

Quiz
•
11th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
10 questions
PF Unit 10

Quiz
•
9th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade