Trong Python, câu lệnh nào dưới đây dùng để tính độ dài của xâu s?

Tin học 10 Bài 24

Quiz
•
Other
•
10th Grade
•
Hard
Hương Trần
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
len(s).
length(s).
s.len().
s. length().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào dưới đây là độ dài của xâu "1234%^^%TFRESDRG"?
16.
17.
18.
15.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Có thể truy cập từng kí tự của xâu thông qua chỉ số.
Chỉ số bắt đầu từ 0.
Có thể thay đổi từng kí tự của một xâu.
Python không có kiểu dữ liệu kí tự.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức sau đây cho kết quả đúng hay sai? S1 = "12345", S2 = "3e4r45" , S3 = "45" , S3 in S1, S3 in S2
True, False.
True, True.
False, False.
False, True.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau cho kết quả là gì?
name = "Codelearn"
print(name[0])
"C".
"o".
"c".
Câu lệnh bị lỗi.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu?
>>> s = "0123145"
>>> s[0] = '8'
>>> print(s[0])
'8'.
'0'.
'1'.
Chương trình bị lỗi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chuỗi sau được in ra mấy lần?
s = "abcdefghi"
for i in range(10): if i % 4 == 0: print(s)
0.
1.
2.
3.
Create a free account and access millions of resources
Similar Resources on Quizizz
9 questions
bài 24

Quiz
•
10th Grade
13 questions
Kerbal space program

Quiz
•
KG - 10th Grade
10 questions
Câu hỏi về xâu kí tự

Quiz
•
10th Grade
10 questions
BÀI TẬP CHO BÀI 4-5

Quiz
•
1st Grade - University
7 questions
Câu hỏi bài 24 (Lớp 10)

Quiz
•
10th Grade
10 questions
ôn tập giữa kì 2: Xâu kí tự

Quiz
•
10th Grade
12 questions
ôn tập tin lần 2

Quiz
•
9th - 12th Grade
10 questions
Ôn lại bài 12

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Other
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade