Search Header Logo

Kiểm tra kiến thức Python - Mảng (List)

Authored by Hanh Bui

Computers

10th Grade

Used 1+ times

Kiểm tra kiến thức Python - Mảng (List)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Chương trình sau thực hiện công việc gì? A=[] for i in range(1, 1001): if(i % 7 == 0) and (i % 5 !=0): A.append(str(i)) print(','.join(A))

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Tìm tất cả các số chia hết cho 7 và là bội số của 5, nằm trong đoạn 1 và 1000.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Tìm tất cả các số không chia hết cho 7 nhưng là phải bội số của 5, nằm trong đoạn 1 và 1000.

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Danh sách A sẽ như thế nào sau các lệnh sau? >>> A = [2, 3, 5, 6] >>> A. append(4) >>> del (A[2])

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Kết quả của chương trình sau là gì? A = [2, 3, 5, "python", 6] A.append(4) A.append(2) A.append("x") del(A[2]) print(len(A))

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Chương trình sau thực hiện công việc gì? >>> S = 0 >>> for i in range(len(A)): if A[i] > 0: S = S + A[i] >>> print(S)

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Hoàn thiện chương trình tính tích các phần tử dương trong danh sách A. >>> S = (…) >>> for i in range(len(A)): (…) S = S * A[i] >>> print(S)

Evaluate responses using AI:

OFF

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?