Search Header Logo

Bài 12- KDL xâu

Authored by Linh Tran

Other

10th Grade

Used 1+ times

Bài 12- KDL xâu
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

E = "I am a robot"

 V = "Tôi là người máy"

print(E + “_” + V)

cho ra kết quả gì?

I am a robot_Tôi là người máy

I am a robot "_" Tôi là người máy

Tôi là người máy I am a robot

Tôi là người máy I am a robot

2.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

s = "123456789"

s=s.replace("345","")

biến S chứa giá trị nào sau đây:

"126789"

"1256789"

"123789"

"345"

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

a="Thành công"

n=len(a)

n nhận giá trị bằng bao nhiêu?

9

10

11

12

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

a="number"

Câu lệnh nào xóa kí tự cuối cùng của xâu a?

a=a.replace("r","")

a=a.replace(6,"")

a=a.replace("n","")

a=a.replace("","")

5.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

a="number"

b="one"

m=len(a)+len(b)

print(m)

Giá trị biến m bằng bao nhiêu?

9

10

11

12

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Xâu kí tự có độ dài bằng 0 gọi là:

Không tồn tại

Xâu rỗng

Chứa kí tự 0

Xâu ngắn

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Cho s1 = "010"; s2 = "1001010" hàm len(s1+s2) cho giá trị bằng:

9

10

11

12

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?