Python Programming Random Quiz

Python Programming Random Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

Roblox! (Royale High

Roblox! (Royale High

2nd - 12th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

Shared Data & Disaster Recovery

Shared Data & Disaster Recovery

11th Grade

15 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Network

Network

10th - 11th Grade

10 Qs

Python Programming Random Quiz

Python Programming Random Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Easy

DOK Level 1: Recall

Standards-aligned

Created by

Grit and Motivation

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?