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

phu dao tin 10 thang 3

Quiz
•
Computers
•
10th Grade
•
Hard
Lan Trịnh
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s. length().
s.len().
ength(s).
len(s).
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu xâu kí tự nào hợp lệ?
1) “123_@##”
2) “hoa hau”
3) “346h7g84jd”
4) python
5) “01028475”
6) 123456
2
3
4
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?
14
15
16
17
4.
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ự.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức sau cho kết quả đúng hay sai?
S1 = “12345”
S2 = “3e4r45”
S3 = “45”
S3 in S1
S3 in S2
True, False.
False, False.
True, True.
False, True
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau cho kết quả là bao nhiêu?
name = "Codelearn"
print(name[0])
'C'
'c'
'o'
'e'
7.
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.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
python-BTxâu

Quiz
•
9th - 12th Grade
10 questions
Kiến thức về xâu kí tự trong Python

Quiz
•
10th Grade - University
10 questions
Bài 18-Các lệnh vào ra đơn giản

Quiz
•
10th Grade
10 questions
Kiến thức về kiểu dữ liệu trong NNLT

Quiz
•
1st Grade - University
10 questions
Bài 25-Một số lệnh làm việc với xâu kí tự

Quiz
•
10th Grade
10 questions
BAI 24_LOP10_BAITAP

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
8 questions
CỦNG CỐ BÀI 24 TIN 10

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 Computers
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