Тест на вкладені розгалуження
Quiz
•
Other
•
6th Grade
•
Hard
Валерій Зражва
Used 3+ times
FREE Resource
Enhance your content in a minute
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
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Other
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
20 questions
One step Equations
Quiz
•
6th Grade
20 questions
Integers, Opposites and Absolute Value
Quiz
•
6th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
