Python Modules Quiz

Python Modules Quiz

9th Grade

21 Qs

quiz-placeholder

Similar activities

UH 3 PEMROGRAMAN DASAR

UH 3 PEMROGRAMAN DASAR

1st Grade - University

20 Qs

UH 1 Semester 2

UH 1 Semester 2

9th Grade

20 Qs

Информатика 8-9 класс

Информатика 8-9 класс

6th - 9th Grade

19 Qs

Python Review

Python Review

9th - 12th Grade

16 Qs

BÀI KTTX SỐ 2

BÀI KTTX SỐ 2

9th Grade

20 Qs

Programming

Programming

9th - 11th Grade

20 Qs

Conditions

Conditions

8th - 10th Grade

16 Qs

Python Modules Quiz

Python Modules Quiz

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

DOK Level 1: Recall, DOK Level 2: Skill/Concept

Standards-aligned

Created by

Brandon Dolce

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a module in Python?

A tool to speed up the program execution

A file containing Python definitions and statements

A type of Python data structure

A Python keyword

Tags

DOK Level 1: Recall

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a built-in module in Python?

`flask`

`sys`

`django`

`numpy`

Tags

DOK Level 1: Recall

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you import the `math` module in a Python script?

`import math as m`

`#import math`

`import math`

`module math`

Tags

DOK Level 1: Recall

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function from the `math` module is used to calculate the square root of a number?

`math.sqrt()`

`math.square()`

`math.pow()`

`math.root()`

Tags

DOK Level 1: Recall

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function from the `random` module is used to generate a random integer within a specified range?

`random.randint()`

`random.range()`

`random.int()`

`random.number()`

Tags

DOK Level 1: Recall

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you get the current date and time using the `datetime` module?

`datetime.now()`

`datetime.date.today()`

`datetime.datetime.now()`

`datetime.time.now()`

Tags

DOK Level 1: Recall

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of error is raised when you try to import a module that does not exist?

`NameError`

`ModuleNotFoundError`

`ImportError`

`FileNotFoundError`

Tags

DOK Level 1: Recall

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers