Тест на вкладені розгалуження
Quiz
•
Other
•
6th Grade
•
Hard
Валерій Зражва
Used 3+ times
FREE Resource
Enhance your content
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Що таке вкладене розгалуження в програмуванні?
Конструкція, де одна умова міститься в іншій
Виконання двох умов одночасно
Умова, що не впливає на виконання коду
Повторення команди в циклі
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Який оператор використовується для створення вкладених розгалужень у Python?
switch
if
for
def
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Який з наведених записів є правильним вкладеним розгалуженням у Python?
if x > 0: if y > 0: print("OK")
if x > 0 then if y > 0 then print("OK")
if x > 0 { if y > 0 { print("OK") } }
if (x > 0) { if (y > 0) { print("OK"); } }
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Який варіант відповіді правильно описує логіку вкладеного розгалуження?
Виконується лише перша умова
Виконується лише друга умова
Виконується друга умова тільки якщо виконана перша
Виконується будь-яка умова незалежно від інших
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Що відбудеться при виконанні такого коду в Python? x = 5 if x > 0: if x < 10: print("x між 0 і 10")
Програма завершиться помилкою
Виведе "x між 0 і 10"
Нічого не відбудеться
Виведе "x більше 10"
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Як правильно завершити вкладене розгалуження?
Використати break
Використати continue
Використати else або elif
Використати return
7.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Вкладене розгалуження використовується, коли потрібно:
Перевірити одну умову після іншої
Замінити цикл
Виконати логічно залежні умови
Зменшити кількість коду
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Good manner
Quiz
•
1st - 12th Grade
14 questions
Loteria!
Quiz
•
KG - 8th Grade
10 questions
Water Safety
Quiz
•
1st Grade - University
11 questions
christmas
Quiz
•
KG - University
12 questions
Random knowledge
Quiz
•
3rd Grade - Professio...
10 questions
Electrical safety
Quiz
•
6th - 12th Grade
13 questions
A Long Walk to Water Chapters 14, 15, 16
Quiz
•
6th - 8th Grade
16 questions
Snakes
Quiz
•
4th Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
4 questions
End-of-month reflection
Quiz
•
6th - 8th Grade
15 questions
Empathy vs. Sympathy
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th Grade