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

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

11th Grade

6 Qs

quiz-placeholder

Similar activities

Computational Thinking with Bebras

Computational Thinking with Bebras

10th Grade - University

5 Qs

Использование match-case в Python

Использование match-case в Python

11th Grade

10 Qs

Test interactiv pentru recapitularea noțiunilor HTML

Test interactiv pentru recapitularea noțiunilor HTML

9th - 12th Grade

7 Qs

Kuis Menulis Algoritma

Kuis Menulis Algoritma

11th Grade

10 Qs

Examen: impresión 3D

Examen: impresión 3D

9th - 12th Grade

10 Qs

Python bài 10

Python bài 10

9th - 12th Grade

10 Qs

Quiz: Prompt Engineering

Quiz: Prompt Engineering

11th Grade

5 Qs

CÂU HỎI LUYỆN TẬP

CÂU HỎI LUYỆN TẬP

3rd Grade - University

5 Qs

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

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

Assessment

Quiz

Information Technology (IT)

11th Grade

Hard

Created by

Thoa Kim

FREE Resource

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)