Understanding Python Modules

Understanding Python Modules

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Spreadsheet Starter

Spreadsheet Starter

7th Grade - University

12 Qs

Kuis library JMF

Kuis library JMF

9th - 12th Grade

10 Qs

Mengoperasikan Website

Mengoperasikan Website

10th Grade

10 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

Quiz TLJ - VoIP

Quiz TLJ - VoIP

12th Grade

10 Qs

Empowerment Technologies Quiz 2

Empowerment Technologies Quiz 2

11th Grade

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

PMBOK Quiz

PMBOK Quiz

KG - University

10 Qs

Understanding Python Modules

Understanding Python Modules

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Angelito Villalon

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to import a module in Python?

require

include

import

use

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which module contains functions for mathematical operations?

math

time

random

os

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you pause a program for 5 seconds?

time.pause(5)

time.wait(5)

time.delay(5)

time.sleep(5)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function generates a pseudo-random integer between two bounds?

random.between()

random.randint()

random.int()

random.range()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you rename a module at import with a different name for easier reference?

import math to m

import math is m

import math rename m

import math as m

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to directly import a function from a module?

from module import function

include module.function

import function from module

require module.function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to generate a pseudo-random number greater than or equal to 0 and less than 1?

random.float(0, 1)

random.random()

random.int(0, 1)

random.range(0, 1)

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?