
Ôn tập danh sách_xâu
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
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
Ôn HKII tin 4
Quiz
•
5th Grade - University
10 questions
Tin 7 Bài 8
Quiz
•
7th Grade - University
10 questions
Ôn tập HKI Công nghệ - Khối 4
Quiz
•
4th Grade - University
15 questions
Word Editing Master
Quiz
•
10th Grade
10 questions
Aplikasi Pengolah Kata Informatika
Quiz
•
10th Grade
10 questions
Tes Perkembangan Revolusi Industri
Quiz
•
5th Grade - University
15 questions
19.12 Hoạt động 2: ứng dụng của Google
Quiz
•
10th Grade
15 questions
Pemrograman Terstruktur Semester 2 (1) Fungsi
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
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
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
