
Ôn tập cuối kỳ 2 Python
Authored by Huệ Bình Huỳnh
Education
1st Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Education
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade