Search Header Logo

I HATE ICT GUYS< REAL HATE

Authored by Jack TheKingSlayer

English

Professional Development

Used 1+ times

I HATE ICT GUYS< REAL HATE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi: Cho danh sách A = [1, "One", 9, 15, "Two", True, False). Khi thực hiện A.append("NewElement") và sau đó del (A[3]), danh sách A sẽ như thế nào?

[1, "One", 9, "Two", True, False, "NewElement"]

[1, "One", 9, 15, "Two", True, " NewElement"]

[1. "One", 9. "Two", True, "NewElement", False]

[1, "One", 9, 15, "NewElement", True, False)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm một phần tử vào đầu danh sách, ta sử dụng phương thức nào sau đây?

A. append()

C. add(element)

B. insert(0, element)

D. prepend(element)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Danh sách trong Python không thể chứa các phần tử có kiểu dữ liệu khác nhau. ()

Sai

Đúng

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Các phần tử trong danh sách được truy cập thông qua chỉ số, bắt đầu từ 0. ()

Đúng

Sai

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xóa phần tử cuối cùng của danh sách, ta sử dụng lệnh del(list[-1]).

Đúng

Sai

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức append() được sử dụng để thêm một phần tử vào cuối danh sách. ()

Đúng

Sai

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho danh sách A = [1, 2, 6, 10]. Sau khi thực hiện lệnh A.insert(2, 5), danh sách A sẽ như thế nào?

[1, 2, 5, 6, 10]

[5, 1, 2, 6, 10]

[1, 2, 6, 5, 10]

[1, 2, 6, 10, 5]

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?