
Генераторы
Quiz
•
Science
•
5th Grade
•
Medium
Igor Perekalskiy
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Представим, что нам необходимо создать список, состоящий из всех чисел от 1 до 10. Как
мы это можем сделать?
Заполнить вручную
Использовать цикл for
Списковое включение
Это невозможно
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Что это за конструкция
list1 = [i for i in range(1, 11)]
Списковое включение
Словарь
Переменная
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет строка
list1 = [i for i in range(1, 101) if i % 2 == 0]
print(list1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет код
list1 = [i * j for i in range(1, 10) for j in [1, 2, 3]]
print(list1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет код
list1 = [i * j for i in range(1, 10) if i % 2 == 0 for j in [1, 2, 3] if
j != 2]
print(list1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет код
numbers = [1, 2, 3, 4]
result = (x * x for x in numbers)
print(next(result))
print(next(result))
print(next(result))
print(next(result))
for num in result:
print(num)
1, 4, 9, 16
1, 4, 9, 16
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Если функция использует ключевое слово yield, она определяет объект, называемый
Similar Resources on Wayground
10 questions
FAKTOR YANG MEMPENGARUHI BAYANG-BAYANG
Quiz
•
4th - 6th Grade
10 questions
ASESMEN SUMATIF IPA (RANTAI MAKANAN)
Quiz
•
5th Grade
10 questions
Ciclos de vida
Quiz
•
5th Grade
10 questions
Soil Erosion
Quiz
•
5th Grade
10 questions
KUIS ZAT TUNGGAL & ZAT CAMPURAN (RENIA R)
Quiz
•
5th Grade
10 questions
Sains Tahun 6 Kelajuan
Quiz
•
4th - 6th Grade
10 questions
Tema 9 kelas 5 subtema 1 IPA
Quiz
•
5th Grade
10 questions
ekosistem
Quiz
•
5th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Science
20 questions
States of Matter
Quiz
•
5th Grade
20 questions
Physical and Chemical Changes
Quiz
•
5th Grade
20 questions
Constructive and Destructive Forces Quiz Review
Quiz
•
5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
20 questions
Human Body Systems Review
Quiz
•
5th Grade
20 questions
Plant and Animal Cells
Quiz
•
5th Grade
11 questions
Renewable and Nonrenewable Resources
Quiz
•
4th - 5th Grade
15 questions
Force and Motion
Lesson
•
5th Grade
