
Luyện tập Câu lệnh for

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
TRANG LINH
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Microsoft Word 2019 Advanced – Unit 1 (Review of Basic Concepts)

Quiz
•
10th Grade - University
20 questions
Inf-python

Quiz
•
9th - 12th Grade
10 questions
Методы сортировки в Python

Quiz
•
10th Grade
20 questions
Informatika

Quiz
•
8th Grade - University
15 questions
Quiz on Basics of Spreadsheet

Quiz
•
10th Grade
15 questions
Introdução à Programação: Algoritmos e Conceitos Básicos

Quiz
•
10th Grade
20 questions
Microsoft Excel Review Part 2

Quiz
•
8th Grade - University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade