Search Header Logo

TIN 10 KNTT ÔN TẬP BÀI 21 - 25

Authored by LÊ THI KIM LOAN

Computers

10th Grade

Used 10+ times

TIN 10 KNTT ÔN TẬP BÀI 21 - 25
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

32 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(3, 4).

insert(4, 2).

insert(4, 3).

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3: Chương trình trên giải quyết bài toán gì?

>>> s = ""

>>>for i in range(10):

s = s + str(i)

>>>print(s)

In một chuỗi kí tự từ 0 tới 10.

In một chuỗi kí tự từ 0 tới 9.

In một chuỗi kí tự từ 1 tới 10.

In một chuỗi kí tự từ 1 tới 9.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho s = “123456abcdefg”, s1 = “124”, s2 = “235”, s3 = “ab”, s4 = “56” + s3

Có bao nhiêu biểu thức lôgic sau đúng?

s1 in s.

s2 in s.

s3 in s.

s4 in s.

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu s = "1, 2, 3, 4, 5". Muốn xoá bỏ kí tự "," và thay thế bằng dấu " " ta sử dụng lần lượt những câu lệnh nào?

remove() và join().

del() và replace().

split() và join().

split() và replace().

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là bao nhiêu?

>>> s = “abcdefg”

>>> print(s[2])

'c'.

'b'.

'a'.

'd'.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Muốn xóa một phần tử từ danh sách ta dùng lệnh gì?

remove().

insert().

append().

clear().

7.

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().

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?