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
By signing up, you agree to our Terms of Service & Privacy Policy
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
12 questions
Excel. Формули 7 клас
Quiz
•
1st - 12th Grade
10 questions
MEDIA AND INFORMATION LITERACY
Quiz
•
12th Grade
15 questions
Excel
Quiz
•
5th - 6th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
10 questions
Microsoft word terms
Quiz
•
7th - 8th Grade
12 questions
Характеристики зображення та засобів його відтворення
Quiz
•
1st - 12th 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 Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
PowerPoint Basics
Quiz
•
6th - 8th Grade
10 questions
App Creators Lesson 2.1-2.4
Quiz
•
8th Grade
10 questions
Exploring Computer Science Careers and Subfields
Interactive video
•
6th - 10th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
45 questions
Cybersecurity Quiz
Quiz
•
12th Grade
23 questions
Prog 1 Python Q1 Practice
Quiz
•
9th - 12th Grade
