
ôn tập giữa kì 2: Xâu kí tự
Quiz
•
Other
•
10th Grade
•
Practice Problem
•
Medium
Hiềm duongthihiem@gmail.com
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hoàn thành câu lệnh sau để in ra chiều dài của xâu:
x = "Hello World"
print(…)
len(x).
x. len().
copy(x).
x. length().
2.
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().
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = "Python". Muốn chuyển thành xâu s = "P y t h o n" ta cần làm sử dụng những câu lệnh:
split() và join().
split() và replace().
del() và replace().
replace().
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau cho ra kết quả là gì
greeting = 'Good '
time = 'Afternoon'
greeting = greeting + time + '!'
print(greeting)
‘GoodAfternoon’.
‘GoodAfternoon!’.
Chương trình báo lỗi.
‘Good Afternoon !’
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
line = "Geek1 Geek2 Geek3"
print(line.split())
print(line.split(' ', 1))
['Geek1', 'Geek2', 'Geek3']
['Geek1', 'Geek2 Geek3'].
['Geek1', 'Geek2', 'Geek3']
['Geek1', 'Geek2', 'Geek3'] .
['Geek1 Geek2', 'Geek3']
['Geek1', 'Geek2', 'Geek3'].
['Geek1 Geek2', 'Geek3']
['Geek1', 'Geek2 Geek3'].
6.
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.
7.
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.
Create a free account and access millions of resources
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?
Similar Resources on Wayground
10 questions
ĐỀ SỐ 1
Quiz
•
6th Grade - University
10 questions
Media preference
Quiz
•
10th Grade
10 questions
AI HIỂU CON NHẤT ???
Quiz
•
2nd Grade - University
13 questions
Quiz kiểm tra kiến thức Bài 1 - Ngữ văn 9
Quiz
•
9th - 12th Grade
10 questions
Minigame Chào đón tân sinh viên K21
Quiz
•
6th Grade - University
15 questions
văn cuôus học kì 2
Quiz
•
7th Grade - University
12 questions
Tìm hiểu về các thể tranh của các họa sĩ ở TP. Cần Thơ.
Quiz
•
10th Grade
10 questions
LỚP 10A5- THPT CHƯƠNG MỸ B
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Other
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
