
Елементи списку
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
Марія Володимирівна
Used 1+ times
FREE Resource
Enhance your content in a minute
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)
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
Already have an account?
Similar Resources on Wayground
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
15 questions
MORE ON CSS3
Quiz
•
7th Grade
16 questions
Topic 1 - Computer Fundamentals
Quiz
•
1st - 9th Grade
15 questions
IGCSE ICT Chapter 1 Review
Quiz
•
7th - 10th Grade
10 questions
Web Development
Quiz
•
1st - 12th Grade
15 questions
CSS Properties
Quiz
•
7th - 9th Grade
10 questions
Banana Tales Part I (1-40)
Quiz
•
6th - 8th Grade
10 questions
Pre-Test Term 3 Cycle 1-2
Quiz
•
7th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
