Search Header Logo

Tin gk2( phần trắc nghiệm)

Authored by Nam Đức

Computers

10th Grade

Used 2+ times

Tin gk2( phần trắc nghiệm)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

52 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khởi tạo danh sách c gồm 100 số 0 ta dùng cú pháp

c = 0*[100]

c = [0]*100

c = [0*100]

c = 0*100

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?remove()

remove()

clear()

pop()

append()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?

15

18

17

16

4.

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.0

#a.[1]

a[]

a[0]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xóa phần tử thứ 2 trong danh sách a ta dùng lệnh:

del(2)

remove(2)

del a[2]

del a

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng cú pháp

b = (1, 2, 3, 4, 5)

b = [1..5]

b = [1, 2, 3, 4, 5]

b = 1, 2, 3, 4, 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong python, để khai báo một danh sách và khởi tạo sẵn một số phần tử ta dùng cú pháp nào?

[]

<tên danh sách> = ()

<tên danh sách> = [0]

<tên danh sách> = []

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?