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?

hoạt động luyện tập

Quiz
•
Other
•
10th Grade
•
Hard
pham luyen
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A. test().
B. in().
C. find().
D. split().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của các câu lệnh sau lần lượt là:
s = "12 34 56 ab cd de "
print(s. find(" "))
print(s.find("12"))
print(s. find("34"))
A. 2, 0, 3.
B. 2, 1, 3.
C. 3, 5, 2.
D. 1, 4, 5.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh sau trả lại giá trị gì?
“abcdabcd”. find(“cd”)
“abcdabcd”. find(“cd”, 4)
A. 2, 6.
B. 3, 3.
C. 2, 2
C. 2, 2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây dùng để tách xâu:
A. split()
B. join()
C. remove()
D. copy().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?
A. len(s).
B. length(s).
C. s.len().
D. s. length().
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
>>> s = “Một năm có bốn mùa”
>>> s.split()
>>> st = “a, b, c, d, e, f, g, h”
>>> st.split()
‘Một năm có bốn mùa’, [‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’].
[‘Một’, ‘năm’, ‘có’, ‘bốn’, ‘mùa’], [‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’].
‘Một năm có bốn mùa’, ‘abcdefgh’
[‘Một’, ‘năm’, ‘có’, ‘bốn’, ‘mùa’], ‘abcdefgh’.
Similar Resources on Quizizz
10 questions
Tin 9 phần mềm Video Editor

Quiz
•
9th Grade - University
10 questions
Kiểm tra kiến thức Python

Quiz
•
10th Grade
10 questions
Xâu kí tự

Quiz
•
10th Grade
8 questions
Test Python

Quiz
•
9th - 12th Grade
10 questions
Bài kiểm tra thường xuyên lần 1.1 nh2223

Quiz
•
10th - 12th Grade
10 questions
Bài tập biến mảng

Quiz
•
1st Grade - University
10 questions
TIN HỌC

Quiz
•
10th Grade
10 questions
Câu lệnh Rẽ nhánh trong Python

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 Other
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