Розгалуження в Python

Розгалуження в Python

12th Grade

15 Qs

quiz-placeholder

Similar activities

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

Computer Fundamental by Pintu Majumder

Computer Fundamental by Pintu Majumder

11th - 12th Grade

15 Qs

Podstawy Pythona

Podstawy Pythona

9th - 12th Grade

10 Qs

5 клас НУШ Інформатика п 18-20 АЛГОРИТМИ 1

5 клас НУШ Інформатика п 18-20 АЛГОРИТМИ 1

12th Grade

12 Qs

Class XI Basics

Class XI Basics

11th - 12th Grade

15 Qs

Roblox 2. Тест после занятия

Roblox 2. Тест после занятия

1st - 12th Grade

12 Qs

СОР_8 класс_раздел 1

СОР_8 класс_раздел 1

10th Grade - University

15 Qs

IP-адрес безопасности

IP-адрес безопасности

8th Grade - Professional Development

15 Qs

Розгалуження в Python

Розгалуження в Python

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Вадим Чеченя

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Що таке умовний оператор в Python?

Умовний оператор в Python - це функція для обчислення математичних виразів.

Умовний оператор в Python - це конструкція, яка дозволяє виконувати код в залежності від виконання певних умов.

Умовний оператор в Python - це команда для створення нових змінних.

Умовний оператор в Python - це метод для обробки виключень.

2.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Яка структура умовного оператора if в Python?

if умова: блок коду

if (условие) блок кода;

if (условие) { блок кода }

if условие: блок кода else:

3.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Як використовувати оператор else в Python?

else завжди виконується перед if.

else використовується для визначення функцій в Python.

else використовується для виконання коду, якщо умова if є хибною.

else використовується для завершення циклів в Python.

4.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Що таке оператор elif в Python?

Оператор elif в Python не дозволяє перевіряти умови.

Оператор elif в Python - це скорочення для 'else if', який дозволяє перевіряти кілька умов.

elif - це оператор, який завжди повертає True.

Оператор elif в Python використовується для циклів.

5.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Напишіть просту програму, яка перевіряє, чи число парне чи непарне.

The program calculates the square of a number.

The program checks if a number is prime or composite.

The program converts a number to its binary representation.

The program checks if a number is even or odd.

6.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Як вивести дані на екран в Python?

echo 'Ваше повідомлення'

display('Ваше повідомлення')

write('Ваше повідомлення')

print('Ваше повідомлення')

7.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Яка функція використовується для введення даних з клавіатури?

getInput()

scan()

read()

input()

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?