Ôn tập cuối kỳ 2 Python

Quiz
•
Education
•
1st Grade
•
Medium
Huệ Bình Huỳnh
Used 13+ times
FREE Resource
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
Similar Resources on Wayground
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 Education
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
24 questions
1.2:End Punctuation

Quiz
•
1st - 4th Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
All About Empathy (for kids!)

Quiz
•
KG - 6th Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Exploring the 5 Regions of the United States

Interactive video
•
1st - 5th Grade