Trong Python, kiểu dữ liệu nào dùng để lưu trữ xâu ký tự?

Trắc nghiệm xâu ký tự trong Python

Quiz
•
Instructional Technology
•
10th Grade
•
Medium
Đặng 2
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int
float
str
list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào để in ra màn hình xâu "Hello, Python"?
echo("Hello, Python")
print("Hello, Python")
printf("Hello, Python")
output("Hello, Python")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì? s = "Python" print(s[1])
P
y
t
h
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, chỉ số âm trong xâu ký tự bắt đầu đếm từ ký tự cuối cùng về trước.
Đúng
Sai
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào trả về độ dài của xâu `s`?
length(s)
len(s)
size(s)
count(s)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì? s = " Hello World " print(s.strip())
" Hello World "
"Hello World"
"hello world"
"HelloWorld"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn code nào trả về phần xâu "thon" từ biến `s = "Python"`?
s[2:6]
s[3:7]
s[1:5]
s[-3:]
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
JavasCript

Quiz
•
1st Grade - University
10 questions
bài kiểu xâu

Quiz
•
KG - 11th Grade
11 questions
DigiPro 7 Unit 1 Review

Quiz
•
9th - 12th Grade
10 questions
BÀI TẬP BÀI 2 TIN 10

Quiz
•
10th Grade
15 questions
Quizziz - Chuỗi ký tự trong C

Quiz
•
9th - 12th Grade
10 questions
Python

Quiz
•
6th - 11th Grade
10 questions
10NGS-Operators

Quiz
•
10th Grade
15 questions
Python Functions and Method

Quiz
•
10th - 12th 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 Instructional Technology
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