
tin haodepzai
Quiz
•
Specialty
•
9th - 12th Grade
•
Practice Problem
•
Easy
LQ Mobile
Used 1+ times
FREE Resource
Enhance your content in a minute
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chương trình sau thực hiện công việc gì?
>>> S = 0
>>> for i in range(len(A)): if A[i] < 0:
S = S + A[i] >>> print(S)
Tính tổng các phần tử trong A
Tính tổng các phần tử dương trong A
Duyệt từng phần tử trong A
Tính tổng các phần âm trong A
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng cú pháp:
b = 1, 2, 3, 4, 5
b = (1, 2, 3, 4, 5)
b = [1, 2, 3, 4, 5]
b = [1,5]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để kiểm tra một giá trị có nằm trong danh sách hay không, ta dùng cú pháp nào sau đây?
<danh sách> in <giá trị>
<giá trị> in <danh sách>
<giá trị> on <danh sách>
<giá trị> insert <danh sách>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của chương trình sau là bao nhiêu?
>>> s = “123456”
>>> print(s[3])
‘4’
‘5’
‘3’
‘2’
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lệnh nào sau đây dùng để tách xâu
join()
split()
copy()
remove()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của các câu lệnh sau là gì?
s = "123456abcdde "
print(s.find("34"))
0.
2.
1.
3
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn chương trình sau sẽ in ra số nào? >>> def f(a,b):
t = a - b
return t*a*b
>>> f(5,2)
10
35.
30
20
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
50 questions
Uji Materi Pemetaan Lahan Rekap
Quiz
•
12th Grade
47 questions
SSW Pengolahan Makanan 2
Quiz
•
12th Grade
44 questions
Bài 4 Một số công nghệ mới
Quiz
•
10th Grade
45 questions
UJIAN SEKOLAH SMP STELLA MARIS PRAKARYA 2021
Quiz
•
9th Grade
49 questions
ECONOMICS FINAL REVISION
Quiz
•
12th Grade
50 questions
LUẬT TRẺ EM 2016
Quiz
•
1st - 12th Grade
47 questions
Knee bones
Quiz
•
12th Grade
53 questions
SAS Pemeliharaan Sasis kelas XII
Quiz
•
12th 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
