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
11 questions
DIctionary

Quiz
•
11th Grade
14 questions
9.1.5 - Starter Quiz

Quiz
•
7th - 11th Grade
20 questions
Python Basics ;)

Quiz
•
11th Grade
18 questions
SIS_Computer Science

Quiz
•
10th Grade - University
17 questions
GCSE Computer Science - Python Programming Concepts

Quiz
•
9th - 11th Grade
15 questions
python basics

Quiz
•
11th Grade - University
20 questions
Python Basics 2

Quiz
•
9th - 12th Grade
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade