Search Header Logo

Тест зі списків у Python

Authored by Olga Maksimenko

Computers

10th Grade

Used 13+ times

Тест зі списків у Python
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 SELECT QUESTION

45 sec • 1 pt

Як створити порожній список?

L = ()

L = {}

L = list()

L = []

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як додати елемент 'green' в кінець списку L?

L.extend('green')

L.append('green')

L.add('green')

L.insert('green')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як замінити елемент 'green' на 'yellow' у списку L?

L.change('green', 'yellow')

L.swap('green', 'yellow')

L[2] = 'yellow'

L.replace('green', 'yellow')

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як видалити останній елемент зі списку L?

L.remove(-1)

L.pop()

L.clear()

L.delete(-1)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як відсортувати список L за зростанням?

L.sort()

L.order()

L.arrange()

L.shuffle()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як отримати індекс елемента 'yellow' у списку L?

L.search('yellow')

L.find('yellow')

L.locate('yellow')

L.index('yellow')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Яка функція поверне кількість елементів у списку L?

count(L)

length(L)

size(L)

len(L)

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?