Search Header Logo

python-BTxâu

Authored by Quyên Thị

Computers

9th - 12th Grade

Used 31+ times

python-BTxâu
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

10 sec • 1 pt

Kiểu xâu trong Python được viết như thế nào?

2.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Khi thực hiện câu lệnh gán s = ‘Tôi đi học’ thì biến s có độ dài bao nhiêu?

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Trong Python, cho đoạn chương trình sau:

a="Tháng 3"

k=len(a)

print(k)

cho kết quả là?

6

10

14

7

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Đoạn chương trình sau in kết quả là gì ra màn hình: x = "Con cò con cạp con Còng" print(x.find("c"))

0
4
9
-1

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Trong Python, khi muốn tách các từ trong xâu thì ta sử dụng hàm nào sau đây?

len()

find()

join()

split()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

a="Tháng"

b=" Thanh Niên"

m=a+b

print(m)

Giá trị biến m là?

''Tháng Thanh Niên''

Tháng Thanh Niên

3

12

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Lệnh sau trả lại giá trị gì?

>>> s = "0123456789"

>>> s.find("abc")

0

-1

1

Báo lỗi

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?