Search Header Logo

Kiểm Tra Kiến Thức Về List Trong Python

Authored by Thoa Kim

Information Technology (IT)

11th Grade

Kiểm Tra Kiến Thức Về List Trong Python
AI

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 his students about how to declare a tuple data type. Student Aiden answered that this data type is declared by:

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

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?