
KIỂM TRA 10 PHÚT.BÀI 14. KIỂU DANH SÁCH
Authored by HocNT Tin
Computers
10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để thêm phần tử vào cuối danh sách ta dùng hàm nào?
append()
pop()
clear()
remove()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để khởi tạo danh sách a là một danh sách rỗng ta viết:
a=''
a=[]
a=[0]
a=''
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn chương trình:
a=[1,2,3]
a.insert(0,2)
print(a)
Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:
a=[0,1,2,3]
a=[2,3]
a=[2,1,2,3]
a=[1,2,3,2]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho danh sách: a=[0,2,4,6]. Phần tử a[1]=?
0
2
4
6
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để xóa phần tử thứ 2 trong danh sách a ta dùng lệnh nào?
del(2)
del a[2]
del a
remove(2)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Sau khi thực hiện đoạn chương trình:
a=[3,1,5,2]
a.sort()
print(a)
Danh sách a hiển thị trên màn hình là:
[1,2,3,5]
[3,1,5,2]
[5,3,2,1]
[3,5,2,1]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh:
a[1]
a[0]
a0
a[]
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?