S For loops

Quiz
•
Computers
•
10th Grade
•
Easy
Svetlana Stroganova
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какие числа напечатает следующий код?
for i in range (0,10,2):
print(i)
0,2,4,6,8
0,1,2,3,4,5,6,7,8,9,10
0,2,4,6,8,10
0,1,2,3,4,5,6,7,8,9
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой будет выход у следующего кода?
for k in range(0,5):
print(k)
1
2
3
4
1
2
3
4
5
0
1
2
3
4
5
0
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какой код поможет решить следующую задачу:
Вывод на экран n целых чисел начиная с 0 (n вводится пользователем):
n = input("Введите количество чисел: ")
for i in range(n):
print(i)
n = int(input("Введите количество чисел: "))
for i in range(n):
print(i)
n = int(input("Введите количество чисел: "))
for i in range(n):
input(i)
n = int(input("Введите количество чисел: "))
for n in range(n):
print(n)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какой код будет верен для решения следующей задачи?
Выведите на экран 3 четных числа, начиная с 2
for i in range(2,7,2):
print(i)
for i in range(0,4,3):
print(i)
for i in range(0,3,2):
print(i)
for i in range(2,7):
print(i)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какой код надо применить, чтобы решить следующую задачу?
Посчитай сумму чисел от 1 до 10(включая 10)
for i in range(1,10):
k = k+ i
k=0
for i in range(1,11):
k = k+ i
for i in range(1,11):
k = k+ i
k=0
for i in range(1,10):
k = k+ i
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какой код применим для решения следующей задачи?
Выведите на экран все числа в диапазоне от 3 до 7 (включая числа 3 и7)
for i in range(3,8)
print(i)
for i in range(3,7):
print(i)
for i in range(0,7):
print(i)
for i in range(3,8):
print(i)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какой код применим для решения следующей задачи?
Выведите на экран все числа в диапазоне от 4 до 10 (число 10 включаем) с шагом 3
for i in range(4,10,3):
print (i)
for i in range(4,10):
print (i)
for i in range(4,3,10):
print (i)
for i in range(4,12,3):
print (i)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Основи Python

Quiz
•
7th - 12th Grade
10 questions
Представление целых чисел в компьютере

Quiz
•
9th - 12th Grade
15 questions
Цикл for в python

Quiz
•
10th Grade
14 questions
циклы в Python

Quiz
•
10th Grade
10 questions
Викторина по Python (Урок 1-2)

Quiz
•
5th - 11th Grade
10 questions
Системы счисления

Quiz
•
9th - 10th Grade
9 questions
тест экз 1 группа

Quiz
•
10th Grade
14 questions
Системы счисления

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade