Search Header Logo

KIỂU XÂU - PYTHON

Authored by Minh Đỗ

Computers

10th Grade

Used 14+ times

KIỂU XÂU - PYTHON
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.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Cho xâu s = 'Hello everybody'

print(x[2:5])

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x1 = 'tin'

x2 = 'học'

print(x2+x1)

tin học

tinhọc

học tin

họctin

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = 'thời khóa biểu'

print(y.count('i',4)

1

2

3

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = 'thời khóa biểu'

print(s.find('i'))

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s1 = ' có phải em mùa thu Hà Nội'

s2 = 'là'

print(s1.replace('em','là'))

có phải em là mùa thu Hà Nội

báo lỗi

có phải là mùa thu Hà Nội

có phải là em mùa thu Hà Nội

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

chỉ số của các ký tự trong xâu được đánh bắt đầu từ

0

1

2

Không có chỉ số

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python chấp nhận dấu nháy đơn ('), dấu nháy kép (") để biểu thị chuỗi. Cú pháp Python nào sau đây KHÔNG được chấp nhận?

print('Hello World')

print("Hello World")

print('Hello World")

print(""'Hello World'"")

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?