Search Header Logo

Вложенные списки. Часть 1

Authored by Елена Корсакова

Computers

11th Grade

Used 2+ times

Вложенные списки. Часть 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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 BLANKS QUESTION

2 mins • 1 pt

Задан список: 

list1 = [[0, [9, 2]], [1, [4, 6, 3], [5, 2, 3], 8, 3]]

Чему равно значение list1[1][2][1]?

(a)  

5.

FILL IN THE BLANKS QUESTION

2 mins • 1 pt

Задан список: 

list1 = [[1, 2, 3], [4, 5], [8], [1, 2, 3, 4]]

Чему равно значение len(list1)?

(a)  

6.

FILL IN THE BLANKS QUESTION

2 mins • 1 pt

Задан список: 

list1 = [[[1, 1, 0], [0, 1, 1]], [[0, 1], [1, 1], [1, 0]]]

Чему равно значение len(list1)?

(a)  

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]]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?