
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
17 questions
Elementele de bază ale limbajului C++
Quiz
•
10th Grade
15 questions
KTGK. Bài 16. NNLT trình ngôn ngữ và python
Quiz
•
10th Grade
15 questions
Mảng 1 chiều
Quiz
•
8th - 11th Grade
18 questions
ÔN TẬP THI HK 1 - LỚP 3 - 2020
Quiz
•
9th - 12th Grade
15 questions
Ôn tập phần mềm soạn thảo văn bản Word
Quiz
•
3rd Grade - University
15 questions
Tin 7-CHU DE 1-BAI 1+2
Quiz
•
1st Grade - Professio...
16 questions
Lắp Ghép Mô Hình Kĩ Thuật
Quiz
•
4th Grade - University
15 questions
Tin 10 Cánh diều-Bài 4: Tin học trong phát triển kinh tế, xã hội
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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