BÀI 23

BÀI 23

10th Grade

14 Qs

quiz-placeholder

Similar activities

musical notes

musical notes

1st - 11th Grade

10 Qs

Quiz Cultura Digital

Quiz Cultura Digital

2nd Grade - University

11 Qs

Cultura General

Cultura General

KG - University

16 Qs

KNOW YOURSELF KNOW YOUR LIMIT

KNOW YOURSELF KNOW YOUR LIMIT

KG - Professional Development

10 Qs

CH X Mathematics - 26 June 2023

CH X Mathematics - 26 June 2023

9th - 10th Grade

12 Qs

EXAMEN TERCER TRIMESTRE FORMACION CIVICA

EXAMEN TERCER TRIMESTRE FORMACION CIVICA

1st - 10th Grade

10 Qs

Project mc²

Project mc²

2nd Grade - Professional Development

11 Qs

蚂蚁报恩

蚂蚁报恩

1st - 12th 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?