Search Header Logo

Tin 2

Authored by Đinh Hoàng Nam 10a2

Other

9th - 12th Grade

Used 4+ times

Tin 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Danh sách A trước và sau lệnh insert() là [1, 3, 5, 0] và [1, 3, 4, 5, 0]. Lệnh đã dùng là

lệnh gì?

insert(2, 4)

insert(4, 2)

insert(3, 4)

insert(4, 3)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sau khi thực hiện các câu lệnh sau, kết quả của danh sách a như thế nào?

>>> a = [1, 2, 3, 4, 5]

>>> a. clear()

>>> print(A)

[]

[2, 3]

[1, 2, 4, 5]

[0]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là gì?

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

for k in A:

print(k, end = " ")

1 2 3 4 5 6

1 2 3 4 5 6 5

1 2 3 4 5

2 3 4 5 6 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xóa 2 phần tử ở vị trí 1 và 2 trong danh sách a hiện tại ta dùng lệnh gì?

del a[1:2]

del a[0:2]

del a[0:3]

del a[1:3]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu rỗng là xâu có độ dài bằng bao nhiêu?

1

2

0

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để lấy độ dài của xâu s ta dùng hàm nào dưới đây?

str(s)

len(s)

length(s)

s.len()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu kí tự nào sau đây hợp lệ?

1) “123_@##”

2) ‘hoa hau’

3) 346h7g84jd

4) python

1

2

3

4

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?