Bài 8 - Câu lệnh lặp For - Cánh diều Python
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Phạm Cương
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python có mấy dạng lặp:
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc lặp với số lần biết trước là:
for <Biến chạy> in range()
<Khối lệnh cần lặp>
while <Điều kiện>:
<Câu lệnh hay khối lệnh>
for <Biến chạy> in range(m,n):
for <Biến chạy> in range(m,n):
<Khối lệnh cần lặp>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm range(1,5) dùng để khởi tạo dãy số
1, 2, 3, 4
1, 2, 3, 4, 5
2, 3, 4, 5
2, 3, 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm range(9,5) dùng để khởi tạo dãy số nguyên:
9, 8, 7, 6
9, 8, 7, 6, 5
8, 7, 6
Không tạo được dãy số nguyên
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong cấu trúc lặp:
For i in range(3,6):
print('Hello')
Biến chạy i sẽ nhận lần lượt các giá trị:
3, 6
3, 5
3, 4, 5
3, 4, 5, 6
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho hai đoạn chương trình:
Đoạn 1: For i in range(5):
print(i)
Đoạn 2: For i in range(0,5):
print(i)
kết quả thực hiện hai đoạn chương trình trên là
giống nhau
khác nhau
không thực hiện được
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Em hãy cho biết sau khi thực hiện đoạn chương trình sau sẽ hiện mấy dòng 'Chào các bạn':
for i in range(0,3):
print('Chào các bạn')
0
1
2
3
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
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
14 questions
Sains Komputer Tingkatan 4 - 2.2.3 Menghasilkan gambar rajah
Quiz
•
1st Grade - Professio...
10 questions
Literasi Maklumat
Quiz
•
9th - 12th Grade
15 questions
10A16_L1_HK1
Quiz
•
10th Grade
11 questions
College Football
Quiz
•
5th - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
10 questions
BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3
Quiz
•
1st - 10th Grade
10 questions
Network Security
Quiz
•
9th - 11th 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
