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 Wayground
10 questions
10NGS-Operators

Quiz
•
10th Grade
10 questions
Latihan Pra PTS Genap

Quiz
•
10th Grade
10 questions
Mid-Quiz

Quiz
•
9th - 12th Grade
12 questions
Основи Python

Quiz
•
7th - 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
8 questions
BUỔI 1

Quiz
•
1st - 10th Grade
12 questions
Công nghệ 4.0 K7 tinkercad

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

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

Quiz
•
10th Grade