
KT10_ Dữ liệu danh sách
Authored by Doan Hoa
Education
9th - 12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Cho biết kết quả sau khi thực hiện câu lệnh:
>>> A = [1,2,3]
>>> len(A)
1
2
3
123
2.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Cho biết kết quả sau khi thực hiện câu lệnh:
>>> A=[1,3,5,7,9]
>>> A[1]
1
3
5
7
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Cho biết kết quả sau khi thực hiện câu lệnh:
>>> A = [ 2, 4, 6, 8, 0]
>>> A[-1]
2
4
5
0
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
>>> A = [1, 2, 3, 4, 5]
>>> 2 in A
True
False
false
true
5.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Cho biết kết quả sau khi thực hiện câu lệnh:
>>> A = [3, 5]
>>> A.append (9)
>>> A
[3, 5, 9]
[9, 3, 5]
[3, 9, 5]
Báo lỗi
Answer explanation
Lệnh A.append(9): thêm phần tử số 9 vào cuối danh sách
6.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Cho biết kết quả sau khi thực hiện câu lệnh:
>>> A= [2, 4, 6, 8, 1, 0]
>>> del A[1]
>>> A
[2, 6, 8, 1, 0]
[2, 4, 6, 8, 0]
[4, 6, 8, 1, 0]
[2, 6, 8, 0]
7.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Cho biết kết quả sau khi thực hiện câu lệnh:
>>> A = []
>>> len (A)
0
1
2
[]
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?