
Основи роботи зі списками в 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)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
15 questions
Preguntas sobre Excel 2016
Quiz
•
6th Grade - University
10 questions
Berpikir Komputasional Kelas IX (Review Materi)
Quiz
•
9th Grade
17 questions
Algorytmy 8
Quiz
•
1st Grade - University
10 questions
Image File Formats
Quiz
•
KG - 9th Grade
10 questions
Boolean Operators
Quiz
•
6th - 9th Grade
13 questions
PERWAKILAN DATA T2 (nombor perlapanan)
Quiz
•
7th - 9th Grade
12 questions
Number Format and Text Orientation in Khmer
Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
