1. Як створити список із 5 нулями?

Основи роботи зі списками в Python

Quiz
•
Юлія Токар
•
Computers
•
9th Grade
•
2 plays
•
Hard
Student preview

12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
[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)
Explore all questions with a free account
Similar Resources on Quizizz
12 questions
Опрацювання списків мовою Python

Quiz
•
9th Grade
12 questions
Опрацювання елементів списку та рядка

Quiz
•
8th - 9th Grade
12 questions
Пошук найбільшого та найменшого елементів масиву

Quiz
•
9th Grade
10 questions
9-сынып. Python массив.

Quiz
•
1st - 9th Grade
15 questions
Misconceptions Check

Quiz
•
9th - 12th Grade
10 questions
Arrays

Quiz
•
KG - University
17 questions
KIỂU DỮ LIỆU XÂU TIN 10 (CĐF)

Quiz
•
9th - 12th Grade
11 questions
Тест з програмування

Quiz
•
9th Grade
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
EOC Math 1 Review

Quiz
•
9th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
Act 1 of Romeo and Juliet

Quiz
•
9th Grade
20 questions
Common Grammar Mistakes

Quiz
•
7th - 12th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade