
bài 20 for
Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Thao tran
FREE Resource
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
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
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
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
Popular Resources on Wayground
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
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th 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
7 questions
Combining & Revising Sentences- EOC English I Crunchtime
Quiz
•
9th - 10th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
