Что покажет приведенный ниже фрагмент кода?
list1 = [[1, 8, 9], [4, 8, 12, 16], [0, 2, 7]]
print(list1[0][1] + list1[1][2] + list1[2][2])
Вложенные списки. Часть 1
Quiz
•
Computers
•
11th Grade
•
Hard
Елена Корсакова
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Что покажет приведенный ниже фрагмент кода?
list1 = [[1, 8, 9], [4, 8, 12, 16], [0, 2, 7]]
print(list1[0][1] + list1[1][2] + list1[2][2])
IndexError: list index out of range
13
27
5
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Что покажет приведенный ниже фрагмент кода?
list1 = [[1, 8, 9], [4, 8, 12, 16], [0, 2, 7]]
print(list1[0][1] + list1[3][2] + list1[2][2])
IndexError: list index out of range
27
15
5
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Что покажет приведенный ниже фрагмент кода?
list1 = ['Beegeek', [4, 8, 12, 16]]
print(list1[0][1]) print(list1[1][3])
B
12
e
16
B 8
e 16
e
12
4.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Задан список:
list1 = [[0, [9, 2]], [1, [4, 6, 3], [5, 2, 3], 8, 3]]
Чему равно значение list1[1][2][1]?
5.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Задан список:
list1 = [[1, 2, 3], [4, 5], [8], [1, 2, 3, 4]]
Чему равно значение len(list1)?
6.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Задан список:
list1 = [[[1, 1, 0], [0, 1, 1]], [[0, 1], [1, 1], [1, 0]]]
Чему равно значение len(list1)?
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Что покажет приведенный ниже фрагмент кода?
list1 = [[1, 8, 7, 4], [1, 3, 4, 5], [2, 7, 2], [2, 6, 7, 8]] list1.reverse() print(list1)
[[2, 6, 7, 8], [2, 7, 2], [1, 3, 4, 5], [1, 8, 7, 4]]
[[1, 8, 7, 4], [1, 3, 4, 5], [2, 7, 2], [2, 6, 7, 8]]
[[4, 7, 8, 1], [5, 4, 3, 1], [2, 7, 2], [8, 7, 6, 2]]
14 questions
ncert Python Lists
Quiz
•
11th Grade
15 questions
list in python
Quiz
•
10th - 12th Grade
10 questions
Списки Python + Pygame
Quiz
•
KG - University
10 questions
Python Quiz for Grade 11 List, Tuple & Strings
Quiz
•
11th Grade
14 questions
9.1.2 - Starter Quiz
Quiz
•
7th - 11th Grade
14 questions
Python Quiz-Code sample
Quiz
•
9th - 12th Grade
15 questions
Unit 2.6 data representation - character sets MCQs
Quiz
•
10th - 11th Grade
10 questions
Search Algorithms
Quiz
•
9th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University