Search Header Logo

ÔN TẬP CUỐI HK2 - K10

Authored by Chi Lệ

Computers

9th - 12th Grade

Used 8+ times

ÔN TẬP CUỐI HK2 - K10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh:

a[1]
a[0]
a0
a[]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho danh sách a=[0,2,4,6]. Phần tử a[1]=?

0
2
4
6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm phần tử vào cuối danh sách ta dùng hàm:

append()
pop()
insert()
sort()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xóa phần tử thứ i trong danh sách và đưa ra phần tử này, ta gọi hàm:

append(i)
insert(i)
pop(i)
sort(i)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn chương trình: a=[1,2,3] a.append(4) print(a) Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:

a=[4,1,2,3]
a=[1,2,3]
a=[1,2,3,4]
a=[1,4,2,3]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn chương trình: a=[1,2,3] a.insert(0,2) print(a) Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:

a=[0,1,2,3]
a=[2,3]
a=[2,1,2,3]
a=[1,2,3,2]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào để duyệt từng phần tử của danh sách?

for

while - for

for kết hợp với lệnh range()

while kết hợp với lệnh range()

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?