
Python. If/else/elif
Authored by Вера Разумова
Information Technology (IT)
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой синтаксис if оператора в Python является правильным?
if x == 10 then:
if (x == 10) then:
if x = 10:
if x == 10:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет следующий код, если x = 5?
Greater than 5
Equal to 5
Less than 5
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что из перечисленного НЕЛЬЗЯ использовать в условии if?
Операторы сравнения (==, >, <)
Логические операторы (and, or)
Операторы присваивания (=)
Булевы выражения (True, False)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Оператор else является необязательным при использовании операторов if и elif.
Верно
Неверно
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Оператор elif обязателен, если используется else.
Верно
Неверно
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Оператор if в Python может содержать несколько условий, используя логические операторы, такие как and и or.
Верно
Неверно
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой будет вывод следующего кода?
Both conditions are True
x is less than or equal to 5
y is greater than or equal to 30
Error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade