
bài 24.xâu kí tự

Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Vũ Hân
Used 2+ times
FREE Resource
Student preview

22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1: Xâu kí tự được đặt trong cặp dấu:
Nháy đơn ('') hoặc nháy kép ('')
Ngoặc đơn ()
Ngoặc vuông []
Ngoặc nhọn {}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2: 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
Câu 3: Chương trình trên giải quyết bài toán gì? s = "" for i in range(10): s = s + str(i) print(s)
In một chuỗi kí tự từ 0 tới 10.
In một chuỗi kí tự từ 0 tới 9.
In một chuỗi kí tự từ 1 tới 10.
In một chuỗi kí tự từ 1 đến 9.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4: Để biết độ dài của xâu s ta dùng hàm gì?
str(s).
len(s).
length(s).
s.len().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5: Có bao nhiêu xâu kí tự nào hợp lệ? 1) "123_@##" 2) "hoa hau" 3) "346h7g84jd" 4) python 5) "01028475" 6) 123456
5.
6.
4.
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6: Trong Python, xâu nào chương trình sẽ báo lỗi
'This is a string in Python' message = "This is also a string".
"Beautiful is better than ugly.". Said Tim Peters.
Không có xâu bị lỗi.
'It\'s also a valid string'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7: Cho xâu s1='ha noi', xâu s2='ha noi cua toi'. Khẳng định nào sau đây là đúng?
Xâu s2 lớn hơn xâu s1.
Xâu s1 bằng xâu s2.
Xâu s2 nhỏ hơn xâu s1.
Xâu s2 lớn hơn hoặc bằng xâu s1.
Create a free account and access millions of resources
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development