Cho xâu s = 'Hello everybody'
print(x[2:5])
KIỂU XÂU - PYTHON
Quiz
•
Computers
•
10th Grade
•
Hard
Minh Đỗ
Used 13+ times
FREE Resource
11 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Cho xâu s = 'Hello everybody'
print(x[2:5])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x1 = 'tin'
x2 = 'học'
print(x2+x1)
tin học
tinhọc
học tin
họctin
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s = 'thời khóa biểu'
print(y.count('i',4)
1
2
3
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s = 'thời khóa biểu'
print(s.find('i'))
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s1 = ' có phải em mùa thu Hà Nội'
s2 = 'là'
print(s1.replace('em','là'))
có phải em là mùa thu Hà Nội
báo lỗi
có phải là mùa thu Hà Nội
có phải là em mùa thu Hà Nội
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
chỉ số của các ký tự trong xâu được đánh bắt đầu từ
0
1
2
Không có chỉ số
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python chấp nhận dấu nháy đơn ('), dấu nháy kép (") để biểu thị chuỗi. Cú pháp Python nào sau đây KHÔNG được chấp nhận?
print('Hello World')
print("Hello World")
print('Hello World")
print(""'Hello World'"")
10 questions
Xâu kí tự
Quiz
•
10th Grade
11 questions
BAI 24_LỚP 10
Quiz
•
10th Grade
10 questions
Bài 18-Các lệnh vào ra đơn giản
Quiz
•
10th Grade
10 questions
Trắc nghiệm: Bài 18-Các lệnh vào ra đơn giản
Quiz
•
10th Grade
9 questions
ONG VỀ TỔ
Quiz
•
9th - 12th Grade
10 questions
Trắc nghiệm: Bài 16-Ngôn ngữ lập trình bậc cao và Python
Quiz
•
10th Grade
10 questions
python-BTxâu
Quiz
•
9th - 12th Grade
10 questions
BAI 25_10_BAITAP
Quiz
•
10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade