
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
Trong Python, kiểu dữ liệu nào dùng để lưu trữ xâu ký tự?
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
Языки программирования

Quiz
•
9th Grade - University
15 questions
CTE ICT Pathway "SHOW what you KNOW"

Quiz
•
6th - 12th Grade
10 questions
3ESO. TEDI. UNIT 5. TEST. PROGRAMMING

Quiz
•
10th Grade
5 questions
Python-Recap 1

Quiz
•
9th - 12th Grade
10 questions
Dasar Koding dan Kecerdasan Artifisial

Quiz
•
10th Grade
10 questions
Programming in Robotics

Quiz
•
6th - 11th Grade
15 questions
CIE Computer Science syllabus 0478

Quiz
•
9th - 11th Grade
15 questions
Revisão Programação Web - 2

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University