Тест на вкладені розгалуження

Quiz
•
Other
•
6th Grade
•
Hard
Валерій Зражва
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
16 questions
Lektion 30 (Ideen - Diktat)

Quiz
•
1st Grade - Professio...
15 questions
Teamwork

Quiz
•
KG - 12th Grade
15 questions
5.NF.2-6 Test Review

Quiz
•
4th - 7th Grade
10 questions
Тест з програмування у Скретч

Quiz
•
6th Grade
9 questions
Habit 4: Think win-win

Quiz
•
KG - University
10 questions
Cyber Safety

Quiz
•
5th - 12th Grade
15 questions
Study Skill and Test Skills Test

Quiz
•
KG - 12th Grade
15 questions
Area and Perimeter of Rectangles and Squares

Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade
20 questions
Figurative Language Review

Quiz
•
6th Grade
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade