Kiểm tra kiến thức Python
Quiz
•
Computers
•
10th Grade
•
Medium
Kha Phan
Used 9+ times
FREE Resource
65 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho mảng a=[0,2,4,6]. Phần tử a[1]=?
0
2
4
6
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python cung cấp hàm để đếm số kí tự trong một xâu kể cả kí tự dấu cách
len()
dem()
high()
length()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu rỗng là xâu
Có duy nhất một phần tử.
Viết theo chiều thuận và chiều ngược giống nhau.
Không có phần tử nào.
Có độ dài vô hạn.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu a = 'Lý Tự Trọng! Đây là trường của em!'. Để in cụm từ 'trường' từ xâu a, ta sử dụng lệnh nào
print(b = a[21:26])
print(a[21:26])
print(a[‘trường’])
print(b = a[21:25])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho trước xâu kí tự S và xâu substr. Dùng các lệnh nào để biết được vị trí xuất hiện cuối cùng của xâu substr trong xâu S? Ví dụ nếu S = '123321243212', Substr = '12' thì vị trí xuất hiện lần cuối của '12' trong xâu S sẽ là 10. Nếu không thấy sẽ trả về -1
n = len(S)
m = len(substr)
k = -1
for i in range(n-m):
if S.find(substr,i) >= 0:
k = S.find(substr,i)
print(k)
n = lenght(S)
m = lenght(substr)
k = -1
for i in range(n-m):
if S.find(substr,i) >= 0:
k = S.find(substr,i)
print(k)
n = lenght(S)
m = lenght(substr)
k = -1
for i in range(m-n):
if S.find(substr,i) >= 0:
k = S.find(substr,i)
print(k)
n = len(S)
m = len(substr)
k = -1
for i in range(m):
if S.find(substr,i) >= 0:
k = S.find(substr,i)
i = i + 1
print(k)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách a gồm các phần tử [3,4,5]. Khi đó len(a)=
2
3
1
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mục đích của việc kiểm thử chương trình là
Xác định lại bài toán.
Phát hiện và sửa lỗi.
Mô tả chi tiết bài toán.
Để tạo ra một chương trình mới
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
63 questions
SmallBasic and flowcharts
Quiz
•
9th - 12th Grade
60 questions
ICDL-EXCEL
Quiz
•
9th - 12th Grade
70 questions
Hardware, Software and Networks Recap
Quiz
•
9th - 12th Grade
61 questions
Tin 10 CHK2
Quiz
•
10th Grade
69 questions
iGCSE Computer Science: Data
Quiz
•
9th - 12th Grade
60 questions
TIN 7 Bài 1,2,3
Quiz
•
7th Grade - University
60 questions
Ôn tập Tin học lớp 3 HK 2
Quiz
•
3rd Grade - University
65 questions
PTI (susulan) - UAS
Quiz
•
10th Grade - University
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
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
