Search Header Logo

Функції у Python

Authored by alex reyda

Information Technology (IT)

University

Used 2+ 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?

`function myFunc():`

`def myFunc:`

`def myFunc():`

`func myFunc():`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Що повертає функція за замовчуванням, якщо немає оператора `return`?

0

Помилку

None

Порожній рядок

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як викликати функцію `greet()`?

`greet()`

`call greet`

`greet.call()`

`run greet()`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як передати значення за замовчуванням у функцію?

`def func(x = None):`

`def func(x=5):`

`function func(x=5)`

`def func x=5:`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Що таке *args у Python?

Ключові аргументи

Винятки

Неіменовані довільні аргументи

Вхідні дані

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який результат виконання `len("Python")`?

7

6

5

Помилка

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який тип повертає функція `type()`?

string

int

type

dict

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?