
Xâu kí tự trong python
Authored by Lương Thị Thế Trân THPT Trảng Bàng
Computers
1st Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, kiểu dữ liệu xâu kí tự được đặt trong dấu nào?
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để cho biết độ dài của một xâu trong Python, ta sử dụng hàm nào?
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Trong Python, kết quả của biểu thức "Hello" + "World" là gì?
"HelloWorld"
"HelloWorld!"
"Hello World"
"Hello_World"
4.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Cho biết kết quả của đoạn chương trình sau:
y="Em xinh em đứng một mình cũng xinh"
x="em"
print(y.count(x))
3
1
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Để thay thế tất cả kí tự 'a' trong xâu s = 'banana' thành kí tự 'o', ta dùng lệnh nào?
s.count('a', 'o')
s.find('a', 'o')
s.len('a', 'o')
6.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Cho biết kết quả của đoạn mã bên:
"defg"
"abc"
"ghij"
"cdef"
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Cho biết kết quả của đoạn mã bên:
"xuân"
" xuân"
"Mùa xuân"
"trên"
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?