
THCS Kiểm tra kiến thức về xâu trong Python
Authored by huy hoang
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Xâu rỗng là xâu có độ dài bằng:
1
2
0
3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để biết độ dài của xâu s ta dùng hàm:
str(s)
len(s)
length(s)
s.len()
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Cho xâu s1='ab123', xâu s2='a12' với cú pháp: s2 in s1 cho kết quả là:
true
True
False
false
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để khởi tạo xâu s rỗng ta dùng lệnh:
s='0'
s=""
s=[]
s=0
5.
MULTIPLE CHOICE QUESTION
1 min • 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]
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả đoạn chương trình sau là gì? S="0123456789" T="" for i in range(len(S)): T=S[i]+T print(T)
"02468"
"13579"
"0123456789"
"9876543210"
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mệnh đề nào dưới đây đúng?
Xâu kí tự trong Python là xâu chỉ gồm các kí tự nằm trong bảng mã ASCII
Xâu kí tự trong Python là xâu bao gồm các kí tự nằm trong bảng mã ASCII và một số kí tự tiếng Việt trong bảng mã Unicode
Xâu kí tự trong Python là xâu bao gồm các kí tự nằm trong bảng mã Unicode
Xâu kí tự trong Python là xâu bao gồm các kí tự số và chữ trong bảng mã Unicode
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
20 questions
Khoản 8, Điều 3, Bộ luật 2025
Quiz
•
University
20 questions
Kerajian Pasar Lokal
Quiz
•
12th Grade - University
20 questions
Artificial Potential Field Method & Roadmaps
Quiz
•
University
20 questions
JCFAPLYMPICS Business E-Quiz
Quiz
•
University
20 questions
Principal of marketing chapter 2
Quiz
•
University
20 questions
GRizal Review
Quiz
•
University
20 questions
Aircraft Components
Quiz
•
University
20 questions
Kuiz Latihan Project Development (Instructional Design)
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University