Search Header Logo

Python _ BT về Xâu

Authored by Duy Tran

Computers

5th Grade

Used 5+ times

Python _ BT về Xâu
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

Để tạo một chuỗi rỗng trong Python, dùng cú pháp nào?

str = ''

str = ""

str = str()

Tất cả đáp án trên

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

P

y

t

h

o

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Câu 3: Kết quả của đoạn mã sau là gì?

h

o

e

l

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào dùng để chuyển chuỗi thành chữ in hoa?

title()

capitalize()

upper()

lower()

Answer explanation

s = "python"

print(s.upper())


5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Đoạn mã sau in ra gì?

llo

Hel

ell

Lỗi

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào dùng để loại bỏ khoảng trắng ở đầu và cuối chuỗi?

rstrip()

lstrip()

trim()

strip()

Answer explanation

s = "   Hello   "

print(s.strip())  # Hello


7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Đoạn mã sau in ra gì?

5

6

7

8

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?