
Python _ BT về Xâu
Authored by Duy Tran
Computers
5th Grade
Used 7+ times

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
Kết quả của đoạn mã sau là gì?
P
y
t
h
o
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Đ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
Đ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

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?