Kiểm tra kiến thức Python
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Kha Phan
Used 9+ times
FREE Resource
Enhance your content in a minute
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
60 questions
banco de preguntas
Quiz
•
10th Grade
68 questions
NGHỀ :D
Quiz
•
9th - 12th Grade
60 questions
ULANGAN AKHIR INFORMATIKA KELAS X TKJ FASE E
Quiz
•
10th Grade
60 questions
REMIDI PEMROGRAMAN DASAR
Quiz
•
10th Grade
63 questions
Lý 1. nopro
Quiz
•
10th Grade
64 questions
Đề Cương Ôn Tập Giữa Kỳ 2
Quiz
•
10th Grade
60 questions
Soal UP TKI 1
Quiz
•
10th Grade
61 questions
Levels of Programming Languages and Translators
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
