Để 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?

B25.1-Tin10

Quiz
•
Instructional Technology
•
12th Grade
•
Hard
TRUC Ng
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Phát biểu nào chưa chính xác khi nói về toán tử in?
Biểu thức kiểm tra xâu 1 nằm trong xâu 2 là:
Toán tử in trả về giá trị True nếu xâu 1 nằm trong xâu 2.
Toán tử in trả về giá trị False nếu xâu 1 không nằm trong xâu 2.
Toán tử in là toán tử duy nhất giải quyết được bài toán kiểm tra xâu có nằm trong xâu không.
4.
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.
5.
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().
6.
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.
7.
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'.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
B18.2-Tin10

Quiz
•
12th Grade
10 questions
B16.1-Tin10

Quiz
•
12th Grade
10 questions
B22.2-Tin10

Quiz
•
12th Grade
10 questions
B17.3-Tin10

Quiz
•
12th Grade
5 questions
Kiến Thức Chèn Hình Ảnh

Quiz
•
4th Grade - University
10 questions
B25.3-Tin10

Quiz
•
12th Grade
10 questions
CÂU LỆNH FOR - DO

Quiz
•
12th Grade
10 questions
B18.1-Tin10

Quiz
•
12th 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 Instructional Technology
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
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
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade