KIỂM TRA KIỂM XÂU - PYTHON
Quiz
•
Science
•
10th Grade
•
Medium
Trieu Tham
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Xâu kí tự được đặt trong cặp dấu:
Nháy đơn (‘’) hoặc nháy kép (“”)
Ngoặc đơn ()
Ngoặc vuông []
Ngoặc nhọn {}
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Hàm len() cho biết:
Độ dài (hay số kí tự) của xâu.
Chuyển xâu ban đầu thành kí tự in hoa.
Vị trí của kí tự đầu tiên trong xâu.
Vị trí của kí tự bất kì trong xâu.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho xâu st=’abc’. Hàm len(st) có giá trị là:
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn chương trình sau:
s1=’a’
s2=’b’
print(s1+s2)
Kết quả trên màn hình là:
‘a’
‘b’
‘ab’
‘ba’
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Hàm y.cout(x) cho biết:
Vị trí xuất hiện đầu tiên của x trong y.
Vị trí xuất hiện cuối cùng của x trong y.
Cho biết số kí tự của xâu x+y
Đếm số lần xuất hiện không giao nhau của x trong y.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn chương trình sau:
S1=’abcd’
S2=’a’
print(S1.cout(S2))
Trên màn hình sẽ xuất hiện giá trị là:
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng:
0
1
2
3
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Calculating Potential and Kinetic Energy
Quiz
•
9th - 12th Grade
15 questions
MA 5 FR 2 3
Quiz
•
8th Grade - University
10 questions
Oxi - lưu huỳnh - ozon
Quiz
•
10th Grade
10 questions
Bài kiểm tra 15 phút
Quiz
•
10th Grade
10 questions
Acceleration Practice Problems
Quiz
•
9th - 12th Grade
15 questions
MA 4 M 1 1
Quiz
•
8th Grade - University
15 questions
Newton's Second Law
Quiz
•
9th Grade - University
15 questions
Newton's Second Law
Quiz
•
8th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Science
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes
Interactive video
•
6th - 10th Grade
10 questions
Exploring the States of Matter
Interactive video
•
6th - 10th Grade
10 questions
Exploring the States of Matter and Thermal Energy
Interactive video
•
6th - 10th Grade
10 questions
Exploring Light and Waves Concepts
Interactive video
•
6th - 10th Grade
10 questions
Exploring Weathering, Erosion, and Deposition Processes
Interactive video
•
6th - 10th Grade
16 questions
Macromolecules Quiz
Quiz
•
10th Grade
24 questions
DNA Structure and Replication
Quiz
•
10th Grade