
Циклы в Питоне
Authored by Абылайхан Жулекенов
Other
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает цикл for в Питоне?
Цикл for выполняет итерацию по элементам последовательности.
Цикл for не может работать с массивами.
Цикл for выполняет только одну итерацию.
Цикл for используется для определения функций.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какова основная структура цикла while?
do { // код } while (условие);
Основная структура цикла while: while (условие) { // код }
if (условие) { // код }
for (i = 0; i < n; i++) { // код }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Приведите пример вложенного цикла for.
for i in range(3): for j in range(2): print(i + j)
for i in range(5): print(i)
for i in range(2): for j in range(3): print(j, i)
for i in range(3): for j in range(2): print(i, j)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как использовать оператор break в цикле?
Используйте оператор break внутри цикла, чтобы выйти из него при выполнении определенного условия.
Оператор break не влияет на выполнение программы.
Используйте оператор break только в конце цикла.
Оператор break используется для создания новых циклов.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает оператор continue в цикле?
Переходит к следующему циклу без выполнения кода.
Вызывает ошибку в цикле.
Пропускает текущую итерацию цикла.
Завершает цикл полностью.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как можно использовать цикл for для перебора списка?
Используйте цикл for, чтобы отсортировать список.
Используйте цикл for, чтобы удалить элементы из списка.
Используйте цикл for, чтобы добавить элементы в список.
Используйте цикл for, чтобы пройтись по каждому элементу списка.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой результат будет у следующего кода: for i in range(5): print(i)?
5
-1
0 1 2 3 4
10
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
15 questions
NATIONAL YOUTH DAY QUIZ
Quiz
•
9th - 12th Grade
10 questions
量词(华语2)
Quiz
•
1st - 10th Grade
10 questions
Roblox Avatar
Quiz
•
1st - 12th Grade
13 questions
Lego
Quiz
•
KG - Professional Dev...
12 questions
MGT Quiz Finals
Quiz
•
KG - 12th Grade
10 questions
Usos de la g y la j
Quiz
•
1st - 10th Grade
6 questions
FFA Creed Paragraph 5
Quiz
•
9th - 10th Grade
10 questions
Назад в 90-е
Quiz
•
5th - 11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade