
Vòng Lặp For
Authored by Vi Thị Chiến
Computers
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
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”)
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
Quizzone Gmail
Quiz
•
9th - 12th Grade
15 questions
Types of Computers
Quiz
•
10th Grade
10 questions
sistem operasi
Quiz
•
7th - 12th Grade
10 questions
Sprawdź się
Quiz
•
4th - 12th Grade
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
14 questions
Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự
Quiz
•
9th - 12th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
15 questions
Tin học 10-Bài 3
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade