
Tin 10 bài 25. Một số lệnh làm việc với xâu kí tự
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Thùy Dương
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
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?
len(s)
length(s)
s.len()
s. length()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Có thể truy cập từng kí tự của xâu thông qua chỉ số.
Chỉ số bắt đầu từ 0.
Có thể thay đổi từng kí tự của một xâu.
Python không có kiểu dữ liệu kí tự.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu kí tự được đặt trong cặp dấu:
Nháy đơn (‘’) hoặc nháy kép (“”)
Ngoặc đơn ()
Ngoặc vuông []
Ngoặc nhọn {}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng bao nhiêu?
0
1
2
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu xâu kí tự nào hợp lệ?
1) “123_@##”
2) “hoa hau”
3) [python]
4) 123456
1
2
3
4
6.
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()
7.
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
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
12 questions
App Inventor 3. Тест после занятия
Quiz
•
1st - 12th Grade
10 questions
SC025: Control Structures Lecture Quiz
Quiz
•
12th Grade
15 questions
HTML Quiz
Quiz
•
11th Grade - University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
15 questions
Uji Pemahaman Formula Excel
Quiz
•
9th Grade - University
14 questions
TRẮC NGHIỆM BÀI 5_KHỐI 11
Quiz
•
12th Grade
12 questions
Bài 11. Cơ sở dữ liệu
Quiz
•
11th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
