Search Header Logo

ÔN TẬP GIỮA HK2 TIN 10

Authored by Dũng Quốc Trần

Computers

10th Grade

Used 81+ times

ÔN TẬP GIỮA HK2 TIN 10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

53 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn đáp án đúng. Cho A = [1, 2, 3, 4, 5].Để xoá tất cả các phần tử trong A, ta dùng lệnh?

A) del A

B) A.del

C) A.clear()

D) A.remove()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Tạo list bằng lệnh gán với các phần tử trong cặp dấu ngoặc nào?

< >

( )

[ ]

{ }

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Chọn đáp án đúng.

Cho A = [2, 3, 1, 5, 8, 10]

Để xoá giá trị 1 trong danh sách ta viết lệnh?

A.clear(1)

A.del(1)

A.remove(1)

del A[1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Kiểu dữ liệu danh sách trong Python được khởi tạo theo cú pháp:

<tên list> = [<v1>;<v2>]

<tên list> = [<v1> . . <v2>]

<tên list> = [<v1>, <v2>, . . . , <vn>]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Cho danh sách A = [3, 2, 1, 5, 6, 10, 7, 12, 18].

Nếu muốn in ra màn hình các giá trị 2, 1, 5, 6, ta dùng:

for i in range(1,5): print(A[i], end = " ")

for i in range(2,5): print(A[i], end =" ")

for i in range(2,6): print(A[i], end = " ")

for i in range(1,6): print(A[i], end = " ")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Điều kiện trong câu lệnh while là biểu thức dạng dữ liệu gì?

bool.

str.

float.

int.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Cho dãy A = [1, 6, 4, 2, 7].

Để thay đổi dãy A thành [1, 6, 4, 5, 2, 7],  ta viết lệnh?

A.insert(3, 5)

A.append(5, 3)

A.append(3, 5)

A.insert(5, 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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?