
Ôn tập danh sách_xâu
Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
hanh thuy
Used 5+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1. Đoạn chương trình sau giải bài toán nào?
t = 0
for i in range(1, 101):
if(i % 3 == 0 and i % 5 == 0):
t = t + i
print(t)
Tính tổng các số chia hết cho 3 hoặc 5 trong phạm vi từ 1 đến 100.
Tính tổng các số chia hết cho 3 hoặc 5 trong phạm vi từ 1 đến 101.
Tính tổng các số chia hết cho 3 và 5 trong phạm vi từ 1 đến 101.
Tính tổng các số chia hết cho 3 và 5 trong phạm vi từ 1 đến 100.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. Cho biết kết quả khi chạy đoạn chương trình sau:
s = 0
for i in range(3):
s = s+2*i
print(s)
12.
10.
8.
6.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. Bạn An thực hiện đoạn chương trình sau nhưng chương trình báo lỗi. Theo em, bạn An sai ở dòng thứ mấy:
A = [6, 5, 3, 8, 4, 2, 5, 4, 11]
s == 0
for i in A: s = s + i
print("Tổng là", s)
4.
3.
2.
5.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. Cách khai báo biến danh sách (mảng) sau đây, cách nào sai?
ls = [1, 2, 3]
ls = [x for x in range(3)]
ls = [int(x) for x in input().split()]
ls = list(3).
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Danh sách A sẽ như thế nào sau các lệnh sau?
>>> A = [2, 3, 5, 6]
>>> A. append(4)
>>> del (A[2])
2, 3, 4, 5, 6, 4.
2, 3, 4, 5, 6.
2, 4, 5, 6.
2, 3, 6, 4.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. Lệnh xoá một phần tử của một danh sách A có chỉ số i là:
list.del(i).
A. del(i).
del A[i].
A. del[i].
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. Hoàn thiện chương trình tính tích các phần tử dương trong danh sách A.
>>> S = (...)
>>> for i in range(len(A)):
(...)
S = S * A[i]
>>> print(S)
1, if A[i] > 0:
0, if A[i] > 0:
1, if A[i] >= 0
0, if A[i] > 0.
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
10 questions
Understanding Data and Encoding
Quiz
•
6th Grade - University
15 questions
QUIZ AK INFORMATIKA KELAS 10
Quiz
•
10th Grade
15 questions
AI và đạo đức người dùng
Quiz
•
9th - 12th Grade
15 questions
Pemrograman Visual dan Scratch
Quiz
•
7th Grade - University
10 questions
Bài 2 - Tin học 10
Quiz
•
10th Grade
15 questions
Bài 19: Câu lệnh rẽ nhánh IF
Quiz
•
10th Grade
12 questions
Pensamento Computacional - Recuperação 1
Quiz
•
10th Grade
10 questions
BAB I - Informatika-Informatika dan Kemampuan Umum
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
7 questions
Combining & Revising Sentences- EOC English I Crunchtime
Quiz
•
9th - 10th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
