Ôn tập cuối kỳ 2 Python
Quiz
•
Education
•
1st Grade
•
Medium
Huệ Bình Huỳnh
Used 14+ times
FREE Resource
Enhance your content in a minute
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khai báo biến Lop là kiểu dữ liệu kiểu xâu thì cách khai báo nào dưới đây là đúng:
Lop = 10
Lop = 10A1
Lop = “10A1”
Lop = 10.1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để đo độ dài một biến xâu TruongHoc ta dùng hàm:
count(TruongHoc)
len(TruongHoc)
TruongHoc.upper()
Ten.find(Truonghoc)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào là đúng nhất để thay thế xâu con x1=“Pascal” trong xâu Lt = “Lập trình Pascal” thành “Python”?
Lt.count(x1, x2)
Lt.find(x1, x2)
Lt.replace(x1, x2)
len(Lt)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu xâu kí tự KHÔNG nào hợp lệ?
1) “THPT Nguyễn Hiền”
2) “123” cố gắng học tập
3) “lập trình thật thú vị”
4) python
5) “02042023”
6) 123456
3
2
1
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tìm vị trí đầu tiên xuất hiện xâu TenLot = “Thị” trong xâu HoTenHS nếu xâu “Thị” không xuất hiện trong xâu HoTenHS thì kết quả trả về là -1 , ta dùng hàm:
HoTenHS.count(TenLot)
TenLot.count(HoTenHS)
HoTenHS.find(TenLot)
TenLot.find(HoTenHS)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để đếm số lần xuất hiện không giao nhau của xâu TenLot trong xâu HoTen, ta dùng hàm:
HoTen.count(TenLot)
TenLot.count(HoTen)
HoTen.find(TenLot)
TenLot.find(HoTen)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu?
Lt = “Lập trình Python”
print(len(Lt))
3
14
15
16
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
