Hàm nào được sử dụng để tìm kiếm vị trí xuất hiện đầu tiên của một xâu con trong một xâu ký tự?

Ôn lại bài 12

Quiz
•
Other
•
10th Grade
•
Medium
Tâm Ngọc Chung
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
find()
replace()
count()
len()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào dùng để đếm số lần xuất hiện của một ký tự trong một xâu ký tự?
find()
replace()
count()
len()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau:
s= 'abcde'
print(s[:4])
Trên màn hình máy tính sẽ xuất hiện xâu:
abc
bcde
abcd
cde
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm replace() được sử dụng để làm gì với chuỗi ký tự?
Tìm kiếm một chuỗi con trong chuỗi ký tự.
Thay thế một chuỗi con bằng chuỗi mới trong chuỗi ký tự.
Cắt bỏ khoảng trắng thừa ở đầu và cuối chuỗi.
Chuyển đổi tất cả các ký tự trong chuỗi thành chữ thường.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau:
x = "Hello" print(x[2:4])
Kết quả in ra màn hình sẽ là gì?
He
el
ll
lo
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau:
S1= ‘abcdAaBBcdE’
S2= ‘a’
print(S1.count(S2))
Trên màn hình sẽ xuất hiện giá trị là:
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn code sau:
x = "Hello"
y = "World"
print(x + y)
Kết quả in ra màn hình sẽ là gì?
HelloWorld
Hello World
Hello+World
H e l l o W o r l d
Create a free account and access millions of resources
Similar Resources on Quizizz
7 questions
CAESAR CIPHER TINGKATAN 5

Quiz
•
9th - 12th Grade
12 questions
Intro to Python Programming Quiz 9C

Quiz
•
10th Grade - University
10 questions
1A: am/are

Quiz
•
KG - Professional Dev...
9 questions
bài 24

Quiz
•
10th Grade
9 questions
Youtuber

Quiz
•
3rd Grade - Professio...
14 questions
Intro to Python Programming Quiz 9B

Quiz
•
10th Grade - University
6 questions
Shay nắng hay xây web

Quiz
•
1st Grade - University
11 questions
Logic

Quiz
•
KG - University
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