Search Header Logo

Ôn tập tin học hk2

Authored by Vinh Ngô

Computers

9th - 12th Grade

Used 2+ times

Ôn tập tin học hk2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

80 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khai báo một danh sách rỗng l ta dùng cú pháp sau:

l == []

l = 0

l = []

l = [0]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

l = 1..5

l = "[1, 2, 3, 4, 5]"

l = [1..5]

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm phần tử vào cuối danh sách ta dùng hàm:

append

pop

clear

remove

4.

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ì?

append

pop

clear

remove

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để lấy ra phần tử ở cuối danh sách l và đồng thời cũng xóa phần tử đó khỏi danh sách ta dùng lệnh:

l.pop()

pop(l)

l(pop)

pop l

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Với l là một danh sách thì câu lệnh nào sử dụng được?

[l] + 10

l + [10]

[l + 10]

l [+] 10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh [1, 2, 3] + [4, 5, 6] cho kết quả

[1, 2, 3, 4, 5, 6]

[[1, 2, 3], [4, 5, 6]]

[[1], [2], [3], [4], [5], [6]]

Cả ba phương án trên đều sai

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?