
Bài 25
Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
khanh cao
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 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?
test()
in()
find()
split()
2.
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à: in
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.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của các câu lệnh sau là gì? s = "12 34 56 ab cd de " print(s. find(" ")) print(s.find("12")) print(s. find("34"))
2, 0, 3.
2, 1, 3.
3, 5, 2.
1, 4, 5.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là đúng khi nói về các phương thức trong python?
Python có một lệnh đặc biệt dành riêng cho xâu kí tự.
Cú pháp của lệnh find là: . Find().
Lệnh find sẽ tìm vị trí đầu tiên của xâu con trong xâu mẹ.
Câu lệnh find có một cú pháp duy nhất.
5.
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.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây dùng để tách xâu:
split()
join()
remove()
copy().
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Kiểu dữ liệu danh sách trong Python
Quiz
•
10th Grade
10 questions
tiết 2-bài 16 tin 10
Quiz
•
11th Grade
11 questions
Các phép toán logic
Quiz
•
10th Grade
15 questions
Kiểm tra kiến thức về SQL
Quiz
•
11th Grade - University
19 questions
TH lop 5
Quiz
•
3rd Grade - University
19 questions
ON TIN 4_HK1
Quiz
•
4th Grade - University
15 questions
Bài 24
Quiz
•
10th Grade - University
13 questions
Buổi 4
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
