Search Header Logo

Tin 10. Bài 22. Dữ liệu kiểu danh sách

Authored by Thùy Dương

Computers

9th - 12th Grade

Used 8+ times

Tin 10. Bài 22. Dữ liệu kiểu danh sách
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khởi tạo một danh sách ta thực hiện theo cú pháp như thế nào?

<Tên list>=(v1,v2,…,vn)

B. <Tên list>=[v1,v2,…,vn]

<Tên list>==[v1,v2,…,vn]

<Tên list>=(v[1],v[2],…,v[n])

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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[3])

print(A[1])

print(A[0])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tính độ dài của danh sách A ta thực hiện như thế nào?

len(A)

len[A]

len<A>

len.A

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây để tạo danh sách rỗng?

<tên list>.[]

<tên list>=()

<tên list>=<>

<tên list>=[]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho arr = [‘xuan’, ‘hạ’, 1. 4, ‘đông’, ‘3’, 4.5, 7]. Đâu là giá trị của arr[3]?

1.4

đông

hạ

3

6.

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()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách khai báo danh sách nào sau đây, cách nào sai?

ls = [1, 2, 3]

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

ls = [“tin học”]

ls = list(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?