
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Cloud Service Models & Software Process Models
Quiz
•
2nd Grade - University
10 questions
SOAL MID SEMESTER INFORMATIKA
Quiz
•
6th Grade - University
15 questions
Microsoft Word 2019 Advanced – Unit 1 (Review of Basic Concepts)
Quiz
•
10th Grade - University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
10 questions
Formatif
Quiz
•
10th Grade
12 questions
COMPUTACION
Quiz
•
10th Grade
16 questions
9 Weeks Test
Quiz
•
9th - 12th Grade
20 questions
Intrusion Detection and Prevention Systems
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
