Lệnh nào sau đây dùng để tách xâu:
Một số lệnh làm việc với xâu kí tự

Quiz
•
Computers
•
10th Grade
•
Hard
Yến Lâm
Used 12+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
len()
find()
join()
split()
2.
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?
test()
split()
in()
find()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của các câu lệnh sau là gì?
s = "12 34 56 ab cd de "
print(s. find(" "))
print(s.find("12"))
print(s. find("34"))
2, 0, 3
2, 1, 3
3, 5, 2
1, 4, 5
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Lệnh sau trả lại giá trị gì?
>>> s = "0123456789"
>>> s.find("abc")
0
-1
1
Báo lỗi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để cho ra kết quả là độ dài xâu ta sử dụng hàm nào sau đây?
len(<tên biến xâu>)
find(<tên biến xâu>)
Lower(<tên biến xâu>)
upper(<tên biến xâu>)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
a = "Hello"
b = "world"
c = a + " " + b
print(c)
hello world
Hello World
Hello world
Helloworld
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn nối danh sách gồm các từ thành một xâu ta dùng lệnh nào?
len()
find()
split()
join()
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
kiểm tra kiểu xâu

Quiz
•
9th - 12th Grade
15 questions
KTGK. Bài 16. NNLT trình ngôn ngữ và python

Quiz
•
10th Grade
21 questions
ÔN TÂP PYTHON TIN 10

Quiz
•
10th Grade
15 questions
Ôn tập HK2 Python 10

Quiz
•
10th Grade
20 questions
2324TX5

Quiz
•
9th - 12th Grade
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
19 questions
Ôn tin 10

Quiz
•
10th Grade
20 questions
tin học quang minh đẹp trai siêu cấp vũ trụ 7 dải ngân hà

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade