
Генераторы
Quiz
•
Science
•
5th Grade
•
Practice Problem
•
Medium
Igor Perekalskiy
Used 1+ times
FREE Resource
Enhance your content in a minute
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, она определяет объект, называемый
Access all questions and much more by creating a free account
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
10 questions
Trắc nghiệm vui: Ô nhiễm không khí
Quiz
•
KG - Professional Dev...
12 questions
Sound, Light and Heat
Quiz
•
5th Grade
10 questions
Black Inventors
Quiz
•
3rd Grade - University
10 questions
Antrópodos
Quiz
•
5th Grade
12 questions
Ecosystems 5thA
Quiz
•
4th - 5th Grade
12 questions
Facts About Reptiles
Quiz
•
3rd - 5th Grade
10 questions
YO CONSUMO ALIMENTOS SALUDABLES
Quiz
•
1st - 12th Grade
10 questions
QUIZ TEMA 4 KELAS 5
Quiz
•
1st - 5th 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
Discover more resources for Science
20 questions
Weathering, Erosion, Deposition
Quiz
•
5th Grade
20 questions
Light Energy
Quiz
•
5th Grade
15 questions
Weathering Erosion Deposition
Quiz
•
5th Grade
23 questions
Water Cycle
Quiz
•
5th - 6th Grade
16 questions
WED-Weathering, Erosion, and Deposition
Quiz
•
5th Grade
22 questions
CKLA Unit 5 Study Guide 5th Grade
Quiz
•
5th Grade
25 questions
Energy and Matter in Ecosystems
Quiz
•
5th Grade
18 questions
Earth Science Quiz
Quiz
•
5th Grade
