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
Audi car types

Quiz
•
6th Grade - Professio...
10 questions
Xâu kí tự

Quiz
•
10th Grade
10 questions
Câu hỏi về xâu và danh sách

Quiz
•
10th Grade
10 questions
TIN 10_BÀI 12 - LUYỆN TẬP

Quiz
•
10th Grade
15 questions
CC-K10-CHK2 - 2Python Programming Quiz

Quiz
•
10th Grade
10 questions
TIN HỌC

Quiz
•
10th Grade
8 questions
Test Python

Quiz
•
9th - 12th Grade
15 questions
k10-1-python

Quiz
•
10th Grade
Popular Resources on Quizizz
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
Discover more resources for Other
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