
bài 20 for
Authored by Thao tran
Information Technology (IT)
10th Grade

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
10 sec • 1 pt
Trong Python, lệnh tạo vùng giá trị là
chr()
len()
range()
break()
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Câu lệnh range nào cho kết quả là dãy số: 0, 1, 2, 3, 4, 5, 6, 7
range(7)
range(1,7)
range(8)
range(1,8)
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Đoạn chương trình sau cho kết quả là
s = 0
for i in range(1,10):
if i%2==0:
s = s + i
print(s)
17
20
13
30
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Đâu là phát biểu đúng về lệnh for
là câu lệnh lặp với số lần chưa được xác định trước.
số lần lặp của for thường được xác định bởi vùng giá trị của lệnh len().
số lần lặp của lệnh for phụ thuộc vào điều kiện của lệnh.
for là lệnh lặp với số lần biết trước.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Đâu là phát biểu đúng về lệnh tạo vùng giá trị range()
range(n) cho vùng giá trị từ 1, 2, …,n
range(100,1) cho vùng giá trị từ 1,2,…,99
range(start, stop) cho vùng giá trị từ start đến stop
lệnh tạo vùng giá trị range() có các dạng sau: range(stop) và range(start,stop)
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Lệnh range(80,1) cho vùng giá trị là
Rỗng
80, 79,…,1
1,2,…,80
1,2,…,79
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Đoạn chương trình sau cho kết quả là
dem = 0
for i in range(1,10):
if i%5==0:
dem = dem + 1
print(dem)
2
3
1
0
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
Câu hỏi bài 2 Tìm kiếm thông tin trên web
Quiz
•
5th Grade - University
10 questions
Ôn tập - Hệ thống tự động hóa - Robotics
Quiz
•
9th Grade - University
12 questions
Roblox Studio Lesson 6
Quiz
•
6th Grade - University
10 questions
Ôn tập biến và lệnh gán trong Python
Quiz
•
10th Grade
10 questions
Basics of Web Development
Quiz
•
10th Grade
15 questions
Bài 26
Quiz
•
10th Grade - University
15 questions
Quiz về Kiểu Dữ Liệu List và Set (1)
Quiz
•
7th Grade - University
10 questions
Bài 25: Một số lệnh làm việc với xâu kí tự
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
10 questions
Plotting Points on a Coordinate Plane: Quadrant 1 Essentials
Interactive video
•
6th - 10th Grade
10 questions
Exploring Abiotic and Biotic Factors in Ecosystems
Interactive video
•
6th - 10th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade