
bài 20 for
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Hard
Thao tran
FREE Resource
Enhance your content in a minute
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
10 questions
Informatika 2
Quiz
•
7th Grade - University
11 questions
Các phép toán logic
Quiz
•
10th Grade
10 questions
Kiến thức về An toàn mạng
Quiz
•
10th Grade
10 questions
Khám Phá Nghề Nghiệp Trong Tin Học
Quiz
•
8th Grade - University
15 questions
Bài 24
Quiz
•
10th Grade - University
8 questions
G10-Understanding Computer Systems
Quiz
•
10th Grade
10 questions
Analisis Data
Quiz
•
8th Grade - University
10 questions
Kiểu dữ liệu danh sách trong Python
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
