Search Header Logo

hhhhhh pt3

Authored by Na Na

Arts

1st Grade

35 Questions

Used 5+ times

hhhhhh pt3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a,b,c = 5,5.0,'5'; print(a==b,a==c,a is b,a is c)    cho kết quả ?

True True False False

True False False False

True False True False

False False True False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khai báo danh sách lst và khởi tạo danh sách lst có 3 phần tử 10, 20, 30, phương án nào sau đây đúng?

lst = (10,20,30)

lst = {10,20,30}

lst = [10,20,30]

lst = 10,20,30

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khai báo danh sách lst rỗng, phương án nào sau đây đúng?

lst ==[]

lst = 0

lst = []

lst = [0]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khởi tạo danh sách lst gồm 50 số 0, phương án nào sau đây đúng?

lst = 0…50

lst = [0…50]

lst = [0]*50

lst = [0*50]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dùng lệnh nào sau đây để lấy ra phần tử cuối cùng trong danh sách lst?

pop(lst)

lst.pop()

pop(len(lst))

lst.pop

6.

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(a[2]) 

del(a[1])

remove(a[2])

remove(a[1])

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn lệnh sau:

a=[7,3,8,1,9]

a.remove(3)

[7,8,1,9]

[7,3,1,9]

[7,3,8,9]

Báo lỗi

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?

Discover more resources for Arts