Search Header Logo

BÀI 14(CD)_KIỂU DỮ LIỆU DANH SÁCH – XỬ LÍ DANH SÁCH

Authored by Hiếu Ngọc

Computers

10th Grade

BÀI 14(CD)_KIỂU DỮ LIỆU DANH SÁCH – XỬ LÍ DANH SÁCH
AI

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

30 sec • 1 pt

Để xóa phần tử thứ 2 trong danh sách a ta dùng lệnh:

del(2)

del a[2]

del a

remove(2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 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

30 sec • 1 pt

Để thêm phần tử vào cuối danh sách ta dùng hàm:

append()

pop()

clear()

remove()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh a.sort() thực hiện:

Xóa danh sách a.

Sắp xếp danh sách a theo thứ tự không giảm.

Sắp xếp danh sách a theo thứ tự không tăng.

Gọi đến phần tử đầu tiên trong danh sách a.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho mảng a=[0,2,4,6]. Phần tử a[1]=?

0

2

4

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn chương trình sau: a=[3,1,5,2] a.sort() print(a) Sau khi thực hiện đoạn chương trình trên, 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

Giả sử danh sách được xác định như sau: A = [1, 2, 3, 10, "Việt", True] Em hãy cho biết câu lệnh sau in gì ra màn hình. print(A[2], A[4], A[5], len(A))

2 10 Việt 6

2 10 "Việt" 6

3 Việt True 6

3 "Việt" True 6

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?