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
Similar Resources on Wayground
11 questions
Java ArrayLists

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

Quiz
•
10th Grade
12 questions
Unit 5 Lists, Loops, & Traversals

Quiz
•
10th - 12th Grade
15 questions
Олимпиада IT-Куб

Quiz
•
6th - 11th Grade
10 questions
9 класс Информатика Одномерный массив данных

Quiz
•
9th - 10th Grade
10 questions
Python Level 2- Lesson 2

Quiz
•
10th Grade
10 questions
Arrays

Quiz
•
10th - 12th Grade
14 questions
Java Math and String Libraries

Quiz
•
9th - 12th 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