
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
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
11 questions
TRẢ LỜI ĐÚNG - TRÚNG QUÀ COOL
Quiz
•
University
17 questions
Scratch session 06
Quiz
•
University
19 questions
Scratch session 12
Quiz
•
University
20 questions
INFORMATIKA (EXCEL)
Quiz
•
10th Grade
20 questions
Frontend_ReactJS_SS32
Quiz
•
University
20 questions
Ktra thường xuyên Tin 11
Quiz
•
11th Grade - University
10 questions
Kiểm Tra Bài Cũ
Quiz
•
10th Grade
Popular Resources on Wayground
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
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
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
7 questions
Combining & Revising Sentences- EOC English I Crunchtime
Quiz
•
9th - 10th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
