Search Header Logo

Tin 10_Kiểu Dữ Liệu Danh Sách trong Python

Authored by Loan Trần

Computers

10th Grade

Used 6+ times

Tin 10_Kiểu Dữ Liệu Danh Sách trong Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kiểu dữ liệu danh sách trong Python là gì?

Một chuỗi ký tự.

Một kiểu dữ liệu số.

Một kiểu dữ liệu có nhiều phần tử.

Một kiểu dữ liệu logic.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp để khởi tạo danh sách rỗng là gì?

list = {}

list = []

list = ()

list = None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào được sử dụng để truy cập phần tử thứ nhất trong danh sách list1 = [1, 2, 3]?

list1[1]

list1[0]

list1(1)

list1.first()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào thêm phần tử vào cuối danh sách?

append()

add()

insert()

extend()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phép cộng hai danh sách [1, 2] + [3, 4] cho kết quả gì?

[1, 2, 3, 4]

[4, 6]

[1, 5]

[1, 2, 3]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào được sử dụng để xóa phần tử thứ hai trong danh sách a = [10, 20, 30] ?

del a[2]

a.remove(2)

del a[1]

a.clear()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của len([1, 2, 3]) là gì?

2

3

1

0

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?