Тест на вкладені розгалуження
Quiz
•
Other
•
6th Grade
•
Practice Problem
•
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
Already have an account?
Similar Resources on Wayground
13 questions
Elements of Dance Quiz
Quiz
•
3rd - 7th Grade
10 questions
WSC 2023 Art and Music
Quiz
•
6th - 8th Grade
8 questions
harry styles
Quiz
•
1st - 12th Grade
10 questions
Critical Consumer
Quiz
•
6th - 7th Grade
16 questions
Universe Review
Quiz
•
6th - 12th Grade
10 questions
Point of View & Characterization
Quiz
•
6th - 12th Grade
10 questions
Fair Use
Quiz
•
5th Grade - University
10 questions
Greta Thunberg
Quiz
•
5th - 7th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th 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
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
20 questions
Percent of a Number
Quiz
•
6th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
20 questions
One step Equations
Quiz
•
6th Grade
10 questions
Exploring Europe: Geography, History, and Culture
Interactive video
•
5th - 8th Grade
20 questions
Verb Tenses
Quiz
•
6th Grade
