
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
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?
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 Wayground
8 questions
TIN 10. Bài 28. Phạm vi của biến

Quiz
•
10th Grade
10 questions
CỦNG CỐ BÀI 22: KIỂU DỮ LIỆU DANH SÁCH

Quiz
•
10th Grade
10 questions
Գրականություն

Quiz
•
8th - 10th Grade
10 questions
ôn tập giữa kì 2: Xâu kí tự

Quiz
•
10th Grade
10 questions
ON TAP LOP 10 BAI 5 - 6

Quiz
•
10th - 12th Grade
9 questions
minecraft

Quiz
•
KG - Professional Dev...
9 questions
TN câu lệnh while

Quiz
•
10th Grade
7 questions
Bài 17 - K10

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University