Search Header Logo

Модульності у Python

Authored by alex reyda

Information Technology (IT)

University

Used 1+ times

Модульності у Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Що таке модуль у Python?

Файл з розширенням `.py`, що містить код Python

Окрема функція в програмі

Бібліотека сторонніх розробників

Інструмент для компіляції коду

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як імпортувати модуль `math` у Python?

`include math`

`import math`

`using math`

`require math`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як імпортувати лише функцію `sqrt` з модуля `math`?

`import math.sqrt`

`from math import sqrt`

`import sqrt from math`

`using math.sqrt`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як імпортувати модуль `random` з псевдонімом `rnd`?

`import random as rnd`

`import rnd from random`

`from random import rnd`

`import random alias rnd`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як дізнатися про всі функції та змінні, доступні в модулі?

`help(modulename)`

`dir(modulename)`

`list(modulename)`

`show(modulename)`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Що таке пакет (package) у Python?

Файл з розширенням `.py`

Каталог, що містить модулі та файл `__init__.py`

Бібліотека для роботи з архівами

Спеціальний тип функції

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Яка роль файлу `__init__.py` у пакеті?

Визначає, що каталог є пакетом

Містить головну функцію програми

Використовується для ініціалізації змінних

Забороняє імпорт модуля

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?