Python списки
Quiz
•
Computers
•
10th Grade
•
Hard
Used 49+ times
FREE Resource
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
Partition Disk
Quiz
•
10th Grade
10 questions
Computer Quiz For Grade 10 (First Term)
Quiz
•
10th Grade
8 questions
Sieci komputerowe
Quiz
•
6th - 12th Grade
15 questions
Luyện tập
Quiz
•
KG - University
10 questions
Videoconferencias
Quiz
•
5th Grade - Professio...
10 questions
Reforzando Filtros en Excel Expert
Quiz
•
9th - 11th Grade
10 questions
C# Database
Quiz
•
10th Grade
10 questions
SOAL-TKJ
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
