
Vòng Lặp For

Quiz
•
Computers
•
10th Grade
•
Hard
Vi Thị Chiến
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 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?
2
1
0
Tất cả đều sai
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chỉ ra câu lệnh đúng?
x = 0
for i in range(10):
x = x + 1
x = 0
for i in range(10):
x:= x + 1
x = 0
for i in range(10)
x = x + 1
x:= 0
for i in range(10):
x = x + 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong câu lệnh lặp:
j=0
for j in range(10):
j = j + 2
print(j)
Khi kết thúc câu lệnh trên, câu lệnh print(j) được thực hiện bao nhiêu lần?
10
5
1
Không thực hiên
4.
MULTIPLE CHOICE QUESTION
30 sec • 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?
7
8
9
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xác định số vòng lặp cho bài toán: tính tổng các số nguyên từ 1 đến 100?
1
99
100
Tất cả đều sai
6.
MULTIPLE CHOICE QUESTION
30 sec • 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.
7.
MULTIPLE CHOICE QUESTION
30 sec • 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”)
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
15 questions
Bài 20. Câu lệnh lặp for

Quiz
•
9th - 12th Grade
12 questions
Цикл for

Quiz
•
7th Grade - University
13 questions
Word Session Quiz

Quiz
•
7th Grade - University
10 questions
Python Nested Loops Quiz

Quiz
•
9th - 12th Grade
14 questions
Python Data types & Exceptions

Quiz
•
1st - 10th Grade
10 questions
CỦNG CỐ

Quiz
•
10th Grade
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade