Тест по iterable(iterable 8)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Igor Dedik
Used 13+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Как создать пустой список в Python?(2 способа)
empty = []
empty = list()
empty = ()
empty = set()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет код: print([1, 2, 3][-1])?
1
2
3
Ошибка
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как добавить элемент "new" в конец списка my_list?
my_list.insert("new")
my_list.append("new")
my_list.add("new")
my_list += "new"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как удалить последний элемент списка и сохранить его в переменную?
x = my_list.remove()
x = my_list.pop()
x = del my_list[-1]
x = my_list.clear()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает метод list.sort(key=len)?
Сортирует по алфавиту
Сортирует по длине элементов
Переворачивает список
Удаляет дубликаты
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как создать кортеж из одного элемента (5)?
x = (5)
x = (5,)
x = [5]
x = tuple(5)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет код: print((1, 2, [3, 4])[2][0])?
1
2
3
[3, 4]
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
Ôn Tập Môn Tin Học Khối 5 HKI
Quiz
•
1st Grade - University
20 questions
Adding features to a Presentation
Quiz
•
4th Grade - University
20 questions
lilja_mak
Quiz
•
5th - 11th Grade
20 questions
APCSP Unit 1
Quiz
•
9th - 12th Grade
25 questions
HTML
Quiz
•
9th - 12th Grade
20 questions
Y8 - Hardware - T1
Quiz
•
7th - 9th Grade
20 questions
TIK KD 3
Quiz
•
1st - 12th Grade
20 questions
PreTes X
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
