Search Header Logo

Викторина по циклам и функциям в Python

Authored by Нурмухамед Мансуров

Computers

10th Grade

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой тип цикла в Python проверяет условие перед выполнением инструкций?

foreach

for

while

do while

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Что происходит, когда условие в цикле while становится ложным?

Цикл вызывает ошибку

Цикл переходит к следующей итерации

Цикл завершается

Цикл продолжается

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой оператор используется для выхода из цикла?

stop

break

exit

continue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой из следующих параметров является необязательным в функции?

all параметры обязательные

company

age

name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой вывод будет получен при выполнении следующего кода: 'for n in range(4, 10): print(n, end=" ")'?

4 5 6 7 8 9

0 1 2 3 4 5 6 7 8 9

4 5 6 7 8 9 10

4 5 6 7 8 9 10 11

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Что делает оператор continue в цикле?

Завершает цикл

Останавливает выполнение программы

Переходит к следующей итерации

Вызывает ошибку

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Какой из следующих блоков кода является корректным определением функции?

function my_function() { print('Hello') }

def my_function: print('Hello')

def my_function(): print('Hello')

my_function() = def: print('Hello')

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