
Kiểm Tra Kiến Thức Về List Trong Python
Authored by Thoa Kim
Information Technology (IT)
11th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In a Python programming class, the teacher asked her students about how to declare a tuple data type. She asked:
Parentheses ()
Square brackets []
Curly braces {}
The keyword tuple alone
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho a = [1, 2, 3, 4]. Biểu thức a[0] trả về kết quả nào?
0
1
2
Lỗi
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho a = [5, 10, 15, 20]. Kết quả của len(a) là:
3
4
5
20
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây dùng để thêm phần tử 100 vào cuối list a?
a.insert(100)
a.add(100)
a.append(100)
a[100] = end
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho a = [2, 4, 6, 8, 10]. Kết quả của a[1:4] là:
[2, 4, 6]
[4, 6, 8]
[6, 8, 10]
[2, 4, 6, 8]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xóa phần tử có giá trị 7 trong list a?
a.remove(7)
a.pop(7)
a.delete(7)
del(7)
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?