
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
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
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
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
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
18 questions
SAT Prep: Ratios, Proportions, & Percents
Quiz
•
9th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Parallel Lines Cut by a Transversal
Quiz
•
10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
