Python for loop

Quiz
•
Computers
•
4th - 12th Grade
•
Hard
Oles Podrevlyanskiy
Used 25+ times
FREE Resource
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
Similar Resources on Wayground
12 questions
Символьные строки в Python 10 класс

Quiz
•
10th Grade
14 questions
Python Lambda Functions

Quiz
•
12th Grade
10 questions
Списки. Python

Quiz
•
7th Grade
15 questions
Python. Знам и мога. Тест

Quiz
•
7th Grade
12 questions
Ch-8 Iterative statements in Python

Quiz
•
8th Grade
10 questions
Управление циклом: else . 8 класс

Quiz
•
8th Grade - University
8 questions
Лінійні програми Python

Quiz
•
7th - 8th Grade
15 questions
Мова програмування

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade