
Bài 20: Câu lệnh lặp
Authored by Linh Thùy
Other
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Biến chạy trong vòng lặp for i in range(<giá trị cuối>) tăng lên mấy đơn vị sau mỗi lần lặp?
1
2
0
3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, câu lệnh nào dưới đây được viết đúng?
for i in range(10): prin(“A”)
for i in range(10): print(“A”)
for i in range(10): print(A);
for i in range(10) print(“A”)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn chương trình:
j = 0
for i in range(5):
j = j + i
print(j)
Sau khi thực hiện chương trình giá trị của biến j bằng bao nhiêu?
10
12
15
14
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đ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
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lệnh tạo vùng giá trị có cú pháp range(start,stop) trả lại vùng giá trị gồm các số nguyên liên tiếp
Từ start đến stop – 1
Từ start đến stop
Từ start đến stop + 1
Từ start + 1 đến stop
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Xác định vùng giá trị của lệnh range(-5, 5)
A. -5,-4,-3,-2,-1, 0, 1, 2, 3, 4, 5
B. -5,-4,-3,-2,-1, 0, 1, 2, 3, 4
C. -4,-3,-2,-1, 0, 1, 2, 3, 4
D. -4,-3,-2,-1, 0, 1, 2, 3, 4, 5
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Pengukuhan Jati Diri
Quiz
•
10th Grade
15 questions
MISTAKES
Quiz
•
10th Grade
12 questions
Экологическая викторина
Quiz
•
5th - 11th Grade
13 questions
football of world
Quiz
•
1st Grade - University
12 questions
Основы алгебры логики
Quiz
•
10th Grade
15 questions
HEALTH - GRADE 10 - Monthly Test
Quiz
•
9th - 10th Grade
10 questions
Romeo i Julia
Quiz
•
8th - 10th Grade
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade