
Củng cố bài xâu kí tự(Luyện tập)
Authored by Hải Duy
Instructional Technology
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để biết độ dài của xâu s ta dùng hàm:
str(s)
len(s)
lower(s)
split(s)
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho xâu s1=’ab123’, xâu s2=’a12’ với cú pháp: print(s2 in s1) cho kết quả là:
true
True
False
false
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Kí tự cuối cùng của xâu S bất kì là:
S[n]
S[len(S)]
S[len(S)-1]
S[len(S)+1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả đoạn chương trình sau là gì?
‘02468’
‘13579’
‘0123456789’
‘9876543210’
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng:
1
2
0
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm upper() để làm gì?
Chuyển xâu thành in thường
Chuyển xâu thành in hoa
Tách xâu
Ghép xâu
7.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Kết quả của chương trình sau là?
(a)
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?