
Câu hỏi về xâu trong Python
Authored by undefined undefined
Computers
10th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 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ự nào hợp lệ?
1) “123_@##”
2) “hoa hau”
3) “346h7g84jd”
4) python
5) “01028475”
6) 123456
5.
6.
4.
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu "1234%^^%TFRESDRG" có độ dài bằng bao nhiêu?
16.
17.
18.
15.
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ự.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức sau cho kết quả đúng hay sai? S1 = "12345" S2 = "3e4r45" S3 = "45" S3 in S1 S3 in S2
True, False.
True, True.
False, False.
False, True.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau cho kết quả là bao nhiêu? name = "Codelearn" print(name[0])
"C".
"o".
"c".
Câu lệnh bị lỗi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu? >>> s = "0123145" >>> s[0] = '8' >>> print(s[0])
'8'.
'0'.
'1'.
Chương trình bị lỗi.
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
22 questions
ĐỀ CƯƠNG ÔN TẬP TIN HỌC CUỐI HỌC KỲ 1 KHỐI 5
Quiz
•
5th Grade - University
15 questions
Tin 10 Cánh Diều - Dữ liệu thông tin và xử lý thông tin
Quiz
•
10th Grade
20 questions
Lớp 5. Định dạng và bố trí hình ảnh trong văn bản
Quiz
•
5th Grade - University
22 questions
Scratch_NhanBietHinh_GocXoay
Quiz
•
1st Grade - University
21 questions
CÂU HỎI ÔN TAP HKI
Quiz
•
5th Grade - University
20 questions
KTTX1 K9 HK1 24-25
Quiz
•
9th Grade - University
19 questions
Informatica ORIZONT
Quiz
•
1st - 10th Grade
15 questions
ÔN TẬP SCRATCH
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade