Một số lệnh làm việc với xâu kí tự
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Yến Lâm
Used 12+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây dùng để tách xâu:
len()
find()
join()
split()
2.
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?
test()
split()
in()
find()
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
Lệnh sau trả lại giá trị gì?
>>> s = "0123456789"
>>> s.find("abc")
0
-1
1
Báo lỗi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để cho ra kết quả là độ dài xâu ta sử dụng hàm nào sau đây?
len(<tên biến xâu>)
find(<tên biến xâu>)
Lower(<tên biến xâu>)
upper(<tên biến xâu>)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
a = "Hello"
b = "world"
c = a + " " + b
print(c)
hello world
Hello World
Hello world
Helloworld
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn nối danh sách gồm các từ thành một xâu ta dùng lệnh nào?
len()
find()
split()
join()
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
Ôn tập học kỳ I
Quiz
•
9th - 12th Grade
20 questions
TMK Tahun 6 - Pengaturcaraan
Quiz
•
KG - 12th Grade
20 questions
uCertity SDA Lesson 2 Quiz
Quiz
•
8th - 12th Grade
17 questions
Cyber Camps 2018 - Review Day 3 Windows
Quiz
•
7th - 12th Grade
20 questions
Microsoft PPT. - Scavenger Hunt
Quiz
•
6th - 12th Grade
20 questions
Toán tử trong C ++
Quiz
•
10th - 12th Grade
15 questions
CSEC ICT June 2020 Paper 1 Part 1
Quiz
•
9th - 10th Grade
20 questions
Bài 11. Tệp và quản lý tệp
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
