
Luyện tập Câu lệnh for
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
TRANG LINH
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Bạn muốn in dòng chữ “Chúc mừng sinh nhật!” 10 lần. Câu lệnh for phù hợp là?
for i in range(1, 10): print("Chúc mừng sinh nhật!")
for i in range(10): print("Chúc mừng sinh nhật!")
for i in 10:
print("Chúc mừng sinh nhật!")
for print("Chúc mừng sinh nhật!") in range(10):
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để in bảng cửu chương 9, từ 9x1 đến 9x10, bạn viết:
for i in range(1, 11): print(i * 9)
for i in range(1, 10): print(9 * i)
for i in range(11): print(9 x i)
for i = 1 to 10:
print(9 * i)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong hoạt động thể dục, nếu bạn nhảy dây 20 cái, ta dùng range thế nào?
range(1, 20)
range(1, 21)
range(20, 1)
range(0, 20, 2)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh nào sau đây in ra các số chẵn từ 2 đến 10?
for i in range(2, 11, 2): print(i)
for i in range(2, 10): print(i)
for i in range(0, 10): print(i + 2)
for i in range(2, 11): if i % 2 == 0: print(i)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Khi dọn vệ sinh lớp học, bạn lau 4 cửa sổ. Lệnh for phù hợp:
for i in range(1, 4): print("Lau cửa sổ", i)
for i in range(4): print("Lau cửa sổ", i+1)
for i in range(5): print("Lau cửa sổ", i)
for i in range(1, 5): print("Lau cửa sổ")
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn lệnh sau có lỗi gì?
for i in range(1, 6)
print(i)
Thiếu dấu ":"
Sai indent
Dư khoảng trắng
Không lỗi
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dùng for để in từ “Hello” 5 lần:
for i in range(0, 5): print("Hello")
for i in range(5): print(i)
for i in print("Hello")
print("Hello") * 5
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
Already have an account?
Similar Resources on Wayground
20 questions
DPK 2.2
Quiz
•
10th Grade
18 questions
Asesmen Harian Informatika Kelas 7
Quiz
•
7th Grade - University
15 questions
SUMATIF FASE E (Berpikir Komputasional)
Quiz
•
10th Grade
20 questions
Analisis Data dengan Python
Quiz
•
10th Grade
20 questions
Tugas Latihan Soal Informatika 9
Quiz
•
9th - 12th Grade
10 questions
Evaluación inicial
Quiz
•
10th Grade
20 questions
KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar
Quiz
•
7th Grade - University
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
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
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
10 questions
Exploring Christmas Traditions Through Cartoons
Interactive video
•
6th - 10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
33 questions
Algebra 1 Semester 1 Final 2025
Quiz
•
8th - 10th Grade
