
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
Asesmen Diagnostik TIK

Quiz
•
9th - 12th Grade
7 questions
NYT Vocabulary: Pythons

Quiz
•
9th - 12th Grade
10 questions
Harry Potter

Quiz
•
KG - Professional Dev...
11 questions
Câu Hỏi Trắc Nghiệm Tin Học 10

Quiz
•
10th Grade
15 questions
Python Basics Quiz

Quiz
•
6th - 10th Grade
10 questions
Bài 16

Quiz
•
10th Grade
10 questions
Python armenia

Quiz
•
1st Grade - University
10 questions
VIC-K11-GIỮA KỲ 2 (1)

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
20 questions
Cell organelles and functions

Quiz
•
10th Grade
10 questions
Colonial Grievances Against the King Quiz

Quiz
•
10th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade