Search Header Logo

ÔN TẬP GKII (3)

Authored by Thùy Dương

Computers

10th Grade

Used 5+ times

ÔN TẬP GKII (3)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây xoá toàn bộ danh sách A?

A.exit()

A.remove()

A.del()

A.clear()     

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phát biểu nào sau đây là sai?

Sau khi thực hiện lệnh clear() danh sách gốc trở thành rỗng.

Lệnh remove () có chức năng xoá một phần tử có giá trị cho trước.

Lệnh remove() xoá tất cả các phần tử có giá trị cho trước trong danh sách

Clear() có tác dụng xoá toàn bộ các danh sách.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phần tử thứ bao nhiêu trong danh sách A bị xoá?

>>> A = [10, 20, 3, 30, 20, 30, 20, 6, 3, 2, 8, 9]

>>> A.remove(3)

10

9

8

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn chương trình:

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

>>> a.append(4)

>>> print(a)

Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:

[4,1,2,3]     

[1,2,3]

[1,2,3,4]

[1,4,2,3]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?

len(s)

length

s.len()

s. length()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau cho kết quả là bao nhiêu?

name = "Codelearn"

print(name[0])

'C'

'o'

'c'

'Codelearn'

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?