
vận dụng

Quiz
•
Other
•
10th Grade
•
Hard
thủy mai
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?
len(s)
length(s)
s.len()
s.length()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng bao nhiêu?
1
2
0
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = "abcdefg". Kết quả của print(s[2]) là gì?
'c'
'b'
'a'
'd'
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
Kết quả của chương trình sau là gì?
python
Sao chépChỉnh sửa
s1 = "3986443"
s2 = ""
for ch in s1:
if int(ch) % 2 == 0:
s2 = s2 + ch print(s2)
3986443
8644
39864
443
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì?
python
Sao chépChỉnh sửa
s = "Hello, world!" print(s[-1])
'H'
'd'
'!'
'o'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = "Python", kết quả của print(s[1:4]) là gì?
"yth"
"Pyt"
"thon"
"ytho"
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Promotion Techniques

Quiz
•
9th - 10th Grade
14 questions
Python - bài 1+ 2

Quiz
•
10th Grade
10 questions
SOAL MENGETIK 10 JARI

Quiz
•
10th Grade
15 questions
Введение в Phyton

Quiz
•
10th Grade
10 questions
Quiz sobre SGBD e Django

Quiz
•
6th Grade - University
10 questions
Bài Test - b12(Dữ liệu Xâu) lớp 10A

Quiz
•
10th Grade
10 questions
Tugas Informatika Kelas XI

Quiz
•
10th Grade
10 questions
Tin học cuối kì II memade

Quiz
•
10th Grade
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 Other
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