BÀI 23

BÀI 23

10th Grade

14 Qs

quiz-placeholder

Similar activities

Tanaman Bunga dalam Pot

Tanaman Bunga dalam Pot

10th Grade

15 Qs

Estilos de Liderazgo

Estilos de Liderazgo

10th Grade - University

10 Qs

Videojuegos

Videojuegos

2nd Grade - Professional Development

11 Qs

Feste in Deutschland

Feste in Deutschland

1st - 11th Grade

10 Qs

Romaticismo español - Canción del pirata

Romaticismo español - Canción del pirata

10th Grade

15 Qs

tema 7 muatan IPS

tema 7 muatan IPS

10th Grade

10 Qs

Leaders of The World

Leaders of The World

KG - University

10 Qs

THE BEATLES

THE BEATLES

10th Grade

10 Qs

BÀI 23

BÀI 23

Assessment

Quiz

Other

10th Grade

Practice Problem

Medium

Created by

Mai Phương

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Để xóa tất cả các phần tử trong danh sách A lệnh nào sau đây ĐÚNG?

A. A.append().

B. A.pop().

C. A.clear().

D. A.remove().

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Giả sử A = [5, 6, 7, 8, 9, 10, 11, 12]. Biểu thức sau trả về giá trị đúng hay sai?

(3 + 4 – 5 + 18 // 4) in A

A. True.
B. False.

C. [ ].

D. Câu lệnh bị lỗi.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Sau khi thực hiện các câu lệnh sau, mảng A như thế nào?

>>> A = [1, 2, 3, 4, 5]

>>> A. remove(2)

>>> print(A)

A. [1, 2, 3, 4].
B. [2, 3, 4, 5].
C. [1, 2, 4, 5].
D. [1, 3, 4, 5].

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?

>>> 6 in A

>>> ‘a’ in A

A. True, False.
B. True, False.
C. False, True.
D. False, False.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Vị trí phần tử thứ bao nhiêu trong mảng A bị xoá?

>>> A = [10, 20, 3, 30, 20, 30, 20, 6, 3, 2, 8, 9]

>>> A. remove(3)

>>> print(A)

A. 2.
B. 3.
C. 8.
D. 4.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Muốn tham chiếu đến phần tử đầu tiên trong danh sách a có giá trị bằng 2 ta dùng lệnh gì?

A. a.del(2).

B. a.del a(2).

C. a.del a.

D. a.remove(2).

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Danh sách A trước và sau lệnh insert() là [1, 3, 5, 0] và [1, 3, 4, 5, 0].

Lệnh đã dùng là lệnh gì?

A. insert(2, 4).
B. insert(4, 2).
C. insert(3, 4).
D. insert(4, 3).

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?