
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
9 questions
evaluacion 11º

Quiz
•
10th Grade
10 questions
Cuestionario sobre Robótica

Quiz
•
10th Grade
8 questions
Kết nối Robot giáo dục với máy tính

Quiz
•
10th Grade
10 questions
Exploring Coding and Artificial Intelligence

Quiz
•
10th Grade
10 questions
Mid-Quiz

Quiz
•
9th - 12th Grade
15 questions
Atividade Full Stack

Quiz
•
10th Grade
10 questions
Diagnostico sobre C++ Noveo

Quiz
•
8th Grade - University
15 questions
Cuestionario de Arduino

Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade