Bài 8 - Câu lệnh lặp For - Cánh diều Python
Quiz
•
Computers
•
10th Grade
•
Hard
Phạm Cương
Used 6+ times
FREE Resource
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
14 questions
4th quarter 2nd summative
Quiz
•
10th Grade
10 questions
UH EXCEL TIK
Quiz
•
10th Grade
14 questions
2.3 Producing Robust Programs
Quiz
•
10th - 11th Grade
15 questions
App Inventor
Quiz
•
10th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
Jaringan Komputer-Selasa
Quiz
•
10th Grade
10 questions
Python ծրագրավորման լեզու
Quiz
•
7th - 10th Grade
10 questions
Programowanie w Scratchu
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
