
TEST -BÀI 24 XÂU KÍ TỰ
Authored by Thìn Lê
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Có bao nhiêu xâu kí tự hợp lệ?
1) “123_@##”
2) “hoa hau”
3) “346h7g84jd”
4) python
5) “01028475”
6) 123456
3
4
5
6
Answer explanation
Các xâu hợp lệ: 1, 2, 3, 5
Xâu kí tự trong Python là dãy các kí tự Unicode và được đặt trong cặp dấu nháy đơn hoặc nháy kép.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?
15
16
17
18
4.
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ự.
Answer explanation
Khác với danh sách, không thể thay đổi từng kí tự trong xâu.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện lệnh sau, biến s sẽ có kết quả là:
"3986443"
"8644"
"39864"
"443"
Answer explanation
Chương trình hiển thị chuỗi gồm các chữ số chẵn trong s1.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
S1 = “12345”
S2 = “3e4r45”
S3 = “45”
Biểu thức sau cho kết quả đúng hay sai?
S3 in S1
S3 in S2
True, False
True, True
False, False
False, True
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau nếu s = “python1221” là gì?
True.
False.
1221
"2" và "1"
Access all questions and much more by creating a free account
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
14 questions
ÔN TINHK1, K4
Quiz
•
10th Grade
12 questions
Tuần 1-lớp 4
Quiz
•
10th Grade
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
10 questions
Khám phá máy tính lớp 5
Quiz
•
10th Grade - Professi...
10 questions
câu hỏi anime
Quiz
•
1st Grade - University
10 questions
Ôn tập - Tin học 12
Quiz
•
KG - 12th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
10 questions
BÀI KIỂM TRA GIỮA KÌ 2 LỚP 4
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade