Search Header Logo

Tin 10 - Bài 12 CDF - Kiểu dữ liệu xâu kí tự

Authored by Trịnh CT)

Computers

10th Grade

Used 26+ times

Tin 10 - Bài 12 CDF - Kiểu dữ liệu xâu kí tự
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, một xâu kí tự có thể được đặt trong cặp dấu nào?

Nháy kép (“…”)

Nháy đơn (‘…’)

Cả nháy đơn và nháy kép

Dấu ngoặc vuông ([…])

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, chỉ số đầu tiên của một kí tự trong xâu bắt đầu từ số nào?

1

0

-1

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào trong Python dùng để đếm số kí tự trong một xâu, bao gồm cả dấu cách?

count()

len()

length()

size()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của len("Python") là bao nhiêu?

5

6

7

8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, phép toán nào được sử dụng để ghép hai xâu kí tự?

-

*

/

+

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biểu thức "Hello" + "World" trong Python sẽ cho kết quả gì?

"Hello" "World"

"HelloWorld"

"Hello+World"

Lỗi chương trình

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để đếm số lần xuất hiện của một xâu con trong một xâu khác?

find()

count()

replace()

len()

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?