Python Libraries and Modules Quiz

Python Libraries and Modules Quiz

12th Grade

16 Qs

quiz-placeholder

Similar activities

2.1.3. Thinking Procedurally

2.1.3. Thinking Procedurally

12th Grade

11 Qs

Last Minute Sticker Blitz! Computer Sicence

Last Minute Sticker Blitz! Computer Sicence

9th - 12th Grade

18 Qs

المكتبات البرمجية

المكتبات البرمجية

12th Grade

20 Qs

React Native e Componentes básicos

React Native e Componentes básicos

12th Grade

12 Qs

Pandas Series

Pandas Series

12th Grade

20 Qs

Intro to Modules in Python

Intro to Modules in Python

12th Grade

11 Qs

Exploring Python Basics

Exploring Python Basics

12th Grade

15 Qs

Python 145

Python 145

4th Grade - Professional Development

11 Qs

Python Libraries and Modules Quiz

Python Libraries and Modules Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Ahmed Abdallah

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a library in Python?

A built-in function

A type of variable

A collection of modules

A collection of functions only

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What file extension is used for Python modules?

.lib

.py

.txt

.mod

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

stringify

datetime

physics

randomize

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the now() function of the datetime class return?

The current date only

The current time only

The current timezone

The current date and time

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the strftime() function?

To import modules

To format date and time

To get the current date

To calculate time differences

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a package in Python?

A built-in function

A collection of related modules

A type of variable

A single module

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating a module?

Import the module

Create a Python file with .py extension

Create a function

Create a folder

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?