Python списки
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Used 49+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Что выполняет данный фрагмент кода?
numList = list(map(int, input().split()))
numList = numList[::2]
print(' '.join(map(str, numList)))
Вычисляет сумму всех четных элементов списка введенных с клавиатуры
Выводит список всех четных элементов списка введенных с клавиатуры
Выводит в строку все элементы списка введённого с клавиатуры, стоящие на четных местах
Вычисляет длину списка
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что будет напечатано после выполнения данного фрагмента кода?
a = [1, 2, 3]
a[1] = 3
print(a)
[1, 2, 3]
[1, 3, 3]
3
[3, 2, 3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
В результате выполнения кода
a = [0, 1]
b = a
a = [2, 3]
print(b)
Будет напечатано
[2, 3]
[0, 1]
2 3
0 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что будет напечатано после выполнения данного кода:
numList = [1, 2, 3, 4, 5, 6]
numList = [i for i in numList if i % 2 == 0]
print(' '.join(map(str, numList)))
[1, 3, 5]
[2, 4, 6]
1 3 5
2 4 6
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Что будет выведено в результате выполнения данного кода?
numList = [0, 1, 2, 3, -1, -2, -3]
numList = [i for i in numList if i > 0]
print(len(numList))
3
0 1 2 3
[0, 1, 2, 3]
4
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Запустив программу
alist = list(map(int, input().split()))
maxa = max(alist)
print(alist, maxa)
пользователь ввел:
1 2 3 4 5
Что выведет программа?
[1, 2, 3, 4, 5] 5
1 2 3 4 5 5
5
5 [1, 2,3,4,5]
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Дан следующий код:
nlist = [1, 2, 3]
mlist = list(map(lambda i: i**3, nlist))
print(*mlist)
в результате его запуска будет выведено...
1 4 9
3 6 9
1 8 27
[1 4 9]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3
Quiz
•
1st - 10th Grade
10 questions
Microsoft Excel
Quiz
•
10th Grade
10 questions
Network Security
Quiz
•
9th - 11th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
14 questions
Sains Komputer Tingkatan 4 - 2.2.3 Menghasilkan gambar rajah
Quiz
•
1st Grade - Professio...
15 questions
10A16_L1_HK1
Quiz
•
10th Grade
10 questions
TN Bài 12 xâu kí tự _ Cô Tuyết
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
