Search Header Logo

SNLTW_Lv1_buoi9

Authored by Long Trần

Education

6th Grade

Used 1+ times

SNLTW_Lv1_buoi9
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 SELECT QUESTION

20 sec • 3 pts

family=['Dad', 'Mom', 'Me', 'Sister', 'Brother']
Hãy chọn các phát biểu đúng

List family có 5 phần tử

Phần tử family[1] là 'Dad'

Phần tử family[1] là 'Mom'

Phần tử family[-1] là 'Brother'

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

family=['Dad', 'Mom', 'Me', 'Sister', 'Brother']

Làm sao để in ra các phần tử từ 'Mom' đến 'Sister'?

print(family[1:4])

print(family[1:3])

print(family[2:5])

print(family[2:4])

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

family=['Dad', 'Mom', 'Me', 'Sister', 'Brother']

Làm thế nào để nhân bản các thành viên trong gia đình?

print(family*family)

print(family*2)

print(famiy x family)

print(family)*2

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

family1=['Dad', 'Mom', 'Me', 'Sister', 'Brother']

family2=['Grandpa', 'Grandma', 'Uncle']

Làm thế nào nào để gom các thành viên lại thành một đại gia đình?

bigFamily = family1:family2

bigFamily = family1*family2

bigFamily = family1+family2

bigFamily = family1&family2

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

family=['Dad', 'Mom', 'Me', 'Sister', 'Brother']
Làm thế nào để thêm cô dâu 'My wife' vào gia đình này?

family.add('My wife')

family.plus('My wife')

family.append('My wife')

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

family=['Dad', 'Mom', 'Me', 'Sister', 'Brother']
Chị gái 'Sister' vừa mới đi lấy chồng và đã theo chồng ra nước ngoài định cư

Hãy cập nhật lại danh sách các thành viên hiện tại còn 4 người

delete family[3]

del family[3]

cancel famiy[4]

del family[4]

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Cú pháp để tạo list trong python là gì?

<ten_list> = [giatri1, giatri2, ..., giatriN]

<ten_list> = {giatri1, giatri2, ..., giatriN}

<ten_list> = [giatri1+ giatri2+ ...+ giatriN]

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?