Search Header Logo

10a2-ktra miệng

Authored by Thu Nguyễn

Information Technology (IT)

10th Grade

Used 2+ times

10a2-ktra miệng
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Cách khai báo biến mảng sau đây, cách nào sai?

ls = [1, 2, 3]

ls = [x for x in range(3)]

ls = [int(x) for x in input().split()]

ls = list(3)

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Cho khai báo mảng sau:

A = list(“3456789”)

Để in giá trị phần tử thứ 2 của mảng một chiều A ra màn hình ta viết:

print(A[2])

print(A[1])

print(A[3])

print(A[0])

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Giả sử có một list: i = [2, 3, 4]. Nếu muốn in list này theo thứ tự ngược lại ta nên sử dụng phương pháp nào sau đây?

print(list(reversed(i)))

print(list(reverse(i)))

print(reversed(i))

print(reversed(i))

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Để bổ sung phần tử x vào cuối danh sách a ta sử dụng hàm?

a.append(x)

x.append(a)

append(x)

append(a,x)

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Xóa phần tử đứng ở vị trí i trong danh sách a và đưa ra phần tử này ta dùng hàm?

a.pop(i)

a.delete(i)

delete(a,i)

i.pop(a)

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?