
Bài 25
Quiz
•
Others
•
2nd Grade
•
Practice Problem
•
Medium
Zizz Qui
Used 1+ times
FREE Resource
Enhance your content in a minute
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().
find().
split().
in().
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?
Toán tử in trả về giá trị False nếu xâu 1 không nằm trong xâu 2.
Biểu thức kiểm tra xâu 1 nằm trong xâu 2 là: <xâu 1> in <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.
Toán tử in trả về giá trị True nếu xâu 1 nằm trong xâu 2.
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
20 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?
Câu lệnh find có một cú pháp duy nhất
Lệnh find sẽ tìm vị trí đầu tiên của xâu con trong xâu mẹ.
Cú pháp của lệnh find là: <xâu mẹ>. Find(<xâu con>).
Python có một lệnh đặc biệt dành riêng cho xâu kí tự.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điền đáp án đúng vào chỗ chấm (…) hoàn thành phát biểu đúng sau:
“Python có các … để xử lí xâu là … dùng để tách câu thành một danh sách và lệnh join() dùng để … các xâu thành một xâu”.
câu lệnh, split(), nối.
câu lệnh đặc biệt, split(), tách xâu
câu lệnh đặc biệt, copy(), nối danh sách.
câu lệnh đặc biệt, split(), nối danh sách
6.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
Kết quả của chương trình sau là gì?
a = "Hello"
b = "world"
c = a + " " + b
print(c)
7.
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(…)
x. len().
len(x).
copy(x).
x. length().
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
15 questions
hoá 1
Quiz
•
2nd Grade
10 questions
KTVM_Nhóm 5
Quiz
•
1st - 5th Grade
10 questions
sinh học bài 6 ( 3 )
Quiz
•
1st - 5th Grade
10 questions
our house in the future 5
Quiz
•
2nd Grade
10 questions
Quiz Gathering Merchant
Quiz
•
1st - 5th Grade
10 questions
hoá đsai
Quiz
•
2nd Grade
11 questions
đề 1
Quiz
•
2nd Grade
10 questions
Bài tập nâng cao- chuyên sâu
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Others
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
15 questions
Fun Christmas Trivia for Kids
Quiz
•
2nd Grade
26 questions
Christmas Songs
Quiz
•
2nd - 3rd Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
21 questions
Christmas Trivia
Quiz
•
2nd - 4th Grade
10 questions
Exploring the Water Cycle
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
