Để xóa tất cả các phần tử trong danh sách A lệnh nào sau đây ĐÚNG?

BÀI 23

Quiz
•
Other
•
10th Grade
•
Medium
Mai Phương
Used 6+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A. A.append().
B. A.pop().
C. A.clear().
D. A.remove().
2.
MULTIPLE CHOICE QUESTION
45 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
C. [ ].
3.
MULTIPLE CHOICE QUESTION
45 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)
4.
MULTIPLE CHOICE QUESTION
45 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
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Vị trí 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)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Muốn tham chiếu đến phần tử đầu tiên trong danh sách a có giá trị bằng 2 ta dùng lệnh gì?
A. a.del(2).
B. a.del a(2).
C. a.del a.
D. a.remove(2).
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Danh sách A trước và sau lệnh insert() là [1, 3, 5, 0] và [1, 3, 4, 5, 0].
Lệnh đã dùng là lệnh gì?
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Ôn tập GHKII

Quiz
•
1st Grade - Professio...
14 questions
Component Form of Vectors

Quiz
•
9th - 12th Grade
15 questions
k10-1-python

Quiz
•
10th Grade
10 questions
LUYỆN TẬP BÀI 11 ĐỊNH DẠNG VĂN BẢN (Kết nối)

Quiz
•
6th Grade - University
9 questions
HTML тілі

Quiz
•
10th Grade
18 questions
Fusion 360: Introduction Quiz

Quiz
•
6th - 12th Grade
10 questions
Câu hỏi kiến thức bài 9_rẻ nhánh

Quiz
•
KG - 12th Grade
10 questions
PSAT Algebra Quiz

Quiz
•
10th - 11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Other
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade