
Bài 25-27
Authored by Vũ Hân
Information Technology (IT)
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
49 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tạo xâu in hoa từ toàn bộ xâu hiện tại ta dùng hàm nào sau đây?
lower()
len()
upper()
srt()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây dùng để tách xâu
split()
join()
remove()
copy()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh sau trả lại giá trị gì? "0123456789".find("012abc")
-1
0
1
Báo lỗi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = "1, 2, 3, 4, 5". Muốn xoá bỏ kí tự "," và thay thế bằng dấu " " ta sử dụng lần lượt những câu lệnh nào?
remove() và join()
del() và replace()
split() và join()
split() và replace()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh sau trả lại giá trị gì? >> "abcdabcd". find("cd") >> "abcdabcd". find("cd", 4)
2, 6
3, 3
2, 2
2, 7
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sử dụng lệnh nào để tìm vị trí của một xâu con trong xâu khác không?
test()
in()
find()
split()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tách một xâu thành danh sách các từ ta dùng lệnh nào?
Lệnh join()
Lệnh split()
Lệnh len()
Lệnh find()
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?