
Kiểm tra bài cũ Buổi 9 lớp PY1
Authored by Thanh Duong
Computers
1st - 5th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho xâu x = "TINHOCTREDANANG2025". Để truy cập đến kí tự "D" em dùng lệnh?
x[10]
x(9)
x[9]
x(10)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho xâu x = "LAPTRINH". Để truy cập đến kí tự "N" em dùng lệnh?
x[5]
x(7)
x[6]
x(8)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho xâu st = "DANANG2025". Độ dài xâu st là?
10
11
12
9
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Để đo độ dài của một xâu s bất kì em dùng lệnh?
range(s)
count(s)
sum(s)
len(s)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Hãy chọn câu trả lời đúng nhất.
Để truy cập đến kí tự cuối cùng của xâu s, em có thể sử dụng lệnh?
s[len(s)]
s[-1] hoặc s[len(s)]
s[len(s)-1] hoặc s[-1]
s[-1]
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho xâu k = "Hom nay la thu ba". Em tạo ra xâu s = "Hom nay" bằng cách cắt từ xâu k theo cú pháp?
s = k[:7]
s = k[1:7]
s = k[0:6]
s = k[:6]
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho xâu s1 = "Hello" và xâu s2 = "World". Để tạo ra xâu "Hello World" em thực hiện nối xâu như thế nào?
s1+s2
s1*s2
s1+ +s2
s1+" "+s2
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?