
Bài 24 + 25 +26 +27 +28

Quiz
•
Other
•
12th Grade
•
Hard
Hoàng Nguyễn
Used 3+ times
FREE Resource
86 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1. Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?
A. len(s).
B. length(s).
C. s.len().
D. s. length().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. 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
A. 5.
B. 6.
C. 4.
D. 3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?
A. 16.
B. 17.
C. 18.
D. 15.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. Phát biểu nào sau đây là sai?
A. Có thể truy cập từng kí tự của xâu thông qua chỉ số.
B. Chỉ số bắt đầu từ 0.
C. Có thể thay đổi từng kí tự của một xâu.
D. Python không có kiểu dữ liệu kí tự.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Sau khi thực hiện lệnh sau, biến s sẽ có kết quả là:
s1 ="3986443"
s2 = ""
for ch in s1:
if int(ch) % 2 == 0:
s2 = s2 + ch
print(s2)
A. 3986443.
B. 8644.
C. 39864.
D. 443.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. Biểu thức sau cho kết quả đúng hay sai?
S1 = “12345”
S2 = “3e4r45”
S3 = “45”
S3 in S1
S3 in S2
A. True, False.
B. True, True.
C. False, False.
D. False, True.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. Kết quả của chương trình sau nếu s = “python1221” là gì?
s = input("Nhập xâu kí tự bất kì:")
kq = False
for i in range(len(s)-1):
if s[i] == "2" and s[i+1] == "1":
kq = True
break
print(kq)
A. True.
B. False.
C. Chương trình bị lỗi.
D. Vòng lặp vô hạn.
Create a free account and access millions of resources
Similar Resources on Wayground
87 questions
công nghệ 12 học kì 1

Quiz
•
12th Grade
90 questions
2108

Quiz
•
12th Grade
88 questions
Quiz về Quy Luật Di Truyền

Quiz
•
12th Grade
91 questions
Quyền và Nghĩa Vụ của Công Dân về Kinh Doanh

Quiz
•
12th Grade
81 questions
ÔN TẬP KIỂM TRA CUỐI HỌC KỲ 2

Quiz
•
12th Grade
90 questions
ELA FAST Reading and Literary REVIEW K-12

Quiz
•
12th Grade
89 questions
Ôn Kiểm Tra Lịch Sử Lớp 12

Quiz
•
12th Grade
91 questions
Practice Unit 8-14

Quiz
•
12th Grade
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
Discover more resources for Other
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

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

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade