Python for loop
Quiz
•
Computers
•
4th - 12th Grade
•
Practice Problem
•
Hard
Oles Podrevlyanskiy
Used 25+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Який цикл відбувається доти, поки умова не скінчиться?
while
for
обидва
жодний
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що виведе код?
for i in range(0,5):
print(i, end=" ")
1 2 3 4 5
0 1 2 3 4
0 1 2 3 4 5
1 2 3 4
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Оберіть ВСІ діапазони, що включають в себе П'ЯТЬ чисел
(декілька варіантів відоповідей)
range(-1, 4)
range(1, 5)
range(8, 13)
range(-10, -5)
4.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Як можна вивести елементи списку нижче за допомогою циклу for?
(декілька варіантів відповідей)
my_list = ["один", "два", "три", "чотири"]
for el in my_list:
print(el)
for i in range(len(my_list)):
print(i)
for j in range(my_list):
print(my_list[j])
for k in range(len(my_list)):
print(my_list[k])
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Як можна вивести ім'я по буквам?
name = "Ярослав"
for letter in name:
print(letter)
for letter in range(name):
print(letter)
for name in letters:
print(name[letter))
for name in range(name):
print(name)
6.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Запишіть конструкцію діапазона чисел в Python від 1 до 4, включно
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Яку роль відіграє "i" в наступній конструкції?
letters = ["A", "B", "C", "D", "E", "F"]
for i in letters:
...
Це індекс, порядковий номер кожного елемента. Завжди починається з 0
Це елемент зі списку в кожній ітерації (ході циклу), тобто "і" - це буква зі списку
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
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
Quiz 5 - Excel
Quiz
•
11th Grade
10 questions
MEDIA AND INFORMATION LITERACY
Quiz
•
12th Grade
15 questions
Review for Midterm Test ICT 3
Quiz
•
1st - 11th Grade
10 questions
Скорость передачи данных
Quiz
•
7th Grade
15 questions
Excel
Quiz
•
5th - 6th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
12 questions
Характеристики зображення та засобів його відтворення
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
