Search Header Logo

Ôn tập cuối kỳ 2

Authored by Minh Đỗ

Computers

10th Grade

Used 3+ times

Ôn tập cuối kỳ 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Muốn 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]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Muốn thay thế kí tự ‘a’ trong xâu s bằng một xâu mới rỗng ta dùng lệnh nào?

s=s.replace(‘a’, ' ')

s=s.replace(‘a’)

s=replace(a, ' ')

s=s.replace()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn chương trình sau đây là gì?

'tin', 'học', '11'    

'tin học 11'

['tin', 'học', '11']

['tin học 11']

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn chương trình sau đây là gì?

3

2

1

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp để thay thế xâu con x1 thành x2 trong xâu x?

x.replace(x1,x2)

x1.replace(x2,x)

x.replace(x2,x1)

x2.replace(x1,x)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xuất phần tử cuối cùng trong danh sách a, phương án nào sau đây đúng?

print (a[len(a)] )

print (len(a)-1 )

print (len(a) )

print (a[len(a)-1] )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho ds A = [6, 3, 2, 9, 10], kết quả của lệnh sau: A.insert(2,4) =?

A = [6, 3, 2, 9, 2, 10]

A = [6, 3, 2, 2, 9, 10]

A = [6, 3, 4, 2, 9, 10]

A = [6, 3, 2, 4, 9, 10]

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?