
Основи роботи зі списками в Python
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Юлія Токар
Used 2+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Як створити список із 5 нулями?
[0, 0, 0, 0]
list(0, 5)
new_list = [0, 0, 0, 0, 0]
B) [0] * 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Як отримати перший елемент списку `arr = [10, 20, 30, 40]`?
arr[3]
arr.last()
B) arr[0]
arr[2]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Як отримати останній елемент списку `arr`?
arr[len(arr)-1]
arr[0]
B) arr[-1]
arr[first]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Що робить `arr.append(5)`?
Змінює значення 5 на 0
Додає 5 у середину списку
Повертає список без змін
C) Додає 5 у кінець списку
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. Як увести список слів, розділених пробілом, із введення користувача?
A) arr = input().split()
arr = input().split_words()
arr = input().join()
arr = input().split(';')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8. Яка функція повертає довжину списку?
length(arr)
A) len(arr)
arr.count()
arr.getLength()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10. Як перевірити, чи є елемент `x` у списку `arr`?
arr.includes(x)
x in list
A) x in arr
arr.check(x)
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
10 questions
Binary, Bits and Bytes
Quiz
•
9th - 12th Grade
10 questions
معالجة البيانات
Quiz
•
9th Grade
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
14 questions
Объекты алгоритмов
Quiz
•
9th Grade
14 questions
Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự
Quiz
•
9th - 12th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
11 questions
DATA ANALYSIS 101 (Formulas / Functions)
Quiz
•
8th - 9th Grade
10 questions
Computer Fundamentals
Quiz
•
2nd - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
