
Câu hỏi về danh sách và chuỗi
Authored by my xinh
World Languages
KG
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
87 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho ds = [5, 10, 15, 20, 25, 30, 35]. Hãy cho biết giá trị của lệnh len(ds)?
7.
5.
6.
8.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách ds sẽ như thế nào sau các lệnh sau? >>> ds = [2, 4, 6, 8] >>> ds [3] = 5
[2, 4, 6, 5]
[5, 2, 4, 6, 8]
[2, 4, 5, 6, 8]
[2, 4, 6, 8,5]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả sẽ như thế nào sau các lệnh sau? >>> ds = [2, 4, 6, 8] >>> ds [3]
8
6
2
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách ds sẽ như thế nào khi thực hiện các lệnh sau? >>> ds = [22, 19, "Tin", "Minh", 15] >>> del (ds[3])
[22, 19, "Tin", 15]
[19, "Tin", "Minh", 15]
[22, "Tin", "Minh", 15]
[22, 19, "Minh", 15]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy chọn phát biểu sai:
ds.append(x) dùng để bổ sung phần tử x vào đầu danh sách ds.
ds.insert(k, x) dùng để chèn phần tử x vào vị trí k của danh sách ds.
ds.remove(x) dùng để xóa phần tử x từ danh sách ds
ds.clear( ) dùng để xóa toàn bộ dữ liệu của danh sách ds.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách ds trước ds=[1, 3, 4, 5 ]. Sử dụng lệnh nào để có kết quả ds= [1, 2, 3, 4, 5]. Lệnh đã dùng là lệnh gì?
ds.insert(1, 2).
ds.insert(2, 1).
ds.insert(2, 2).
ds.insert(4, 2).
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện đoạn chương trình, danh sách ds có kết quả? >> ds = [10, 2.5, 3, "Python", "Bai23"] >>ds. clear() >> ds
ds=[]
ds=5
ds=[10, 2.5, 3]
ds=["Python", "Bai23"]
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?