
Елементи списку
Authored by Марія Володимирівна
Computers
7th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як можна здійснити пошук елементу у списку?
element in my_list
my_list.search(element)
my_list.index(element)
my_list.find(element)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як можна додати новий елемент до списку?
list_name.append(new_element)
list_name.insert(new_element)
list_name.extend(new_element)
list_name.add(new_element)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як можна видалити елемент зі списку?
list.delete(element)
list.remove(element)
list.exclude(element)
list.erase(element)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як перевірити наявність елементу у списку перед його додаванням?
Перевірити наявність елементу у списку після його додавання
Видалити елемент зі списку перед перевіркою
Перевірити наявність елементу у списку перед його додаванням можна за допомогою умовного оператора 'if' та оператора 'in'. Наприклад: if element not in my_list: my_list.append(element)
Додати елемент у список без перевірки
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як видалити всі екземпляри певного елементу зі списку?
new_list = [x for x in original_list if x > specific_element]
new_list = [x for x in original_list if x == specific_element]
new_list = [x for x in original_list if x < specific_element]
new_list = [x for x in original_list if x != specific_element]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як видалити останній елемент зі списку?
list.pop(-1)
list.delete(-1)
list.pop()
list.remove(-1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як додати елемент у певну позицію у списку?
my_list.update(index, element)
my_list.insert(index, element)
my_list.modify(index, element)
my_list.add(index, element)
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
12 questions
Електронна пошта, 7 кл., 22
Quiz
•
6th - 7th Grade
12 questions
Презентація 6 клас
Quiz
•
1st - 12th Grade
15 questions
cmd and terminal
Quiz
•
7th Grade - University
11 questions
GDevelop Editor
Quiz
•
7th - 12th Grade
18 questions
MTA HTML CSS Session 1
Quiz
•
7th - 9th Grade
15 questions
Informatyka 1
Quiz
•
4th - 12th Grade
18 questions
Unit 4 and 5
Quiz
•
7th Grade
11 questions
Queries
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade