
Kiến thức về vòng lặp trong Python
Authored by Trương Như
Computers
10th Grade
Used 3+ 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
Câu lệnh for i in range(5): sẽ lặp bao nhiêu lần?
4 lần
5 lần
6 lần
Không lặp lần nào
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì? for i in range(3): print(i)
1 2 3
0 1 2
0 1 2 3
Không in gì cả
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh lặp while được dùng khi nào?
Khi biết trước số lần lặp
Khi cần lặp theo danh sách
Khi điều kiện còn đúng
Khi chỉ cần lặp đúng 1 lần
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điền vào chỗ trống để đoạn code chạy đúng: i = 1 _____ i <= 5: print(i) i += 1
if
while
for
when
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều gì xảy ra nếu thiếu i += 1 trong vòng lặp while?
Chương trình chạy sai kết quả
Chương trình chạy 1 lần rồi dừng
Chương trình sẽ bị lặp vô hạn
Không ảnh hưởng gì
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu nào sau đây đúng cú pháp?
for i to range(5):
while i < 5 then:
for i in range(5):
repeat i in 5:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau in ra gì? for i in range(2, 6): print(i, end=" ")
2 3 4 5
2 3 4 5 6
3 4 5 6
1 2 3 4
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
15 questions
App Inventor
Quiz
•
10th Grade
10 questions
حاسب2 / اختبار الوحدة الثالثة
Quiz
•
10th - 12th Grade
11 questions
Microsoft Word
Quiz
•
2nd - 10th Grade
15 questions
СОР_8 класс_раздел 1
Quiz
•
10th Grade - University
10 questions
Input & Output Device
Quiz
•
7th - 10th Grade
10 questions
Pseudocode WHILE Loops
Quiz
•
10th - 12th Grade
15 questions
LATIHAN SOAL SIMDIG SEMESTER 2
Quiz
•
10th Grade
10 questions
LOS SISTEMAS OPERATIVOS
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade