Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?
Trắc nghiệm tin 10 - Exam B

Quiz
•
Other
•
10th Grade
•
Medium

Thảo Nguyễn
Used 3+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A. append().
B. pop().
C. clear().
D. remove().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [5, 6, 7, 8, 9, 10, 11, 12]. Biểu thức sau trả về giá trị đúng hay sai?
(3 + 4 – 5 + 18 // 4) in A
A. True.
B. False.
C. Không xác định.
D. Câu lệnh bị lỗi.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn xóa một phần tử từ danh sách ta dùng lệnh gì?
A. remove()
B. insert()
C. append().
D. clear().
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện các câu lệnh sau, mảng A như thế nào?>>> A = [1, 2, 3, 4, 5]>>> A. remove(2)>>> print(A)
A. [1, 2, 3, 4].
B. [2, 3, 4, 5].
C. [1, 2, 4, 5]
D. [1, 3, 4, 5].
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
6 in A
‘a’ in A
A. True, False.
B. True, True.
C. False, True.
D. False, False.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phần tử thứ bao nhiêu trong mảng A bị xoá?
>>> A = [10, 20, 3, 30, 20, 30, 20, 6, 3, 2, 8, 9]
>>> A. remove(3)
>>> print(A)
A. 2.
B. 3.
C. 8.
D. 4.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn xóa phần tử thứ 2 trong danh sách a ta dùng lệnh gì?
A. del(2).
B. del a(2).
C. del a.
D. remove(2).
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
KTTX Lần 3 K10

Quiz
•
10th Grade
20 questions
Kiểm tra thường xuyên lần 2-K10-HK2

Quiz
•
10th Grade
21 questions
Tin10.list1

Quiz
•
10th Grade
16 questions
TH4-27/12

Quiz
•
4th Grade - University
20 questions
WW2 VEHICLE

Quiz
•
6th - 12th Grade
25 questions
Tin học

Quiz
•
10th Grade
20 questions
Bài 1 - Tổng quan Quản trị Kinh Doanh Lữ Hành

Quiz
•
1st Grade - University
20 questions
Đấu trường tri thức | Lazi Quiz Challenge | 06

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University