
Câu hỏi về vòng lặp trong Python
Quiz
•
Other
•
10th Grade
•
Practice Problem
•
Hard
Hoàng Việt
FREE Resource
Enhance your content in a minute
83 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình python sau: Tong = 0 while Tong < 10: Tong = Tong + 1 Sau khi đoạn chương trình trên được thực hiện, giá trị của tổng bằng bao nhiêu:
9.
10.
11.
12.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả của đoạn chương trình dưới đây: a = 10 while a < 11: print(a)
Trên màn hình xuất hiện một số 10.
Trên màn hình xuất hiện 10 chữ a.
Trên màn hình xuất hiện một số 11.
Chương trình bị lặp vô tận.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tính tổng S = 1 + 2 + 3 + 4 +… + n + … cho đến khi S>10000. Điều kiện nào sau đây cho vòng lặp while là đúng:
while S >= 10000.
while S < 10000.
while S <= 10000.
While S >10000.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy đưa ra kết quả trong đoạn lệnh sau: x = 1 while (x <= 5): print("python") x = x + 1
5 từ python.
4 từ python.
3 từ python.
Không có kết quả.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đáp án đúng nhất: i = 0; x = 0 while i < 10: if i%2 == 0: x = x+1 i = i+1 print(x)
2.
3.
4.
5.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp while kết thúc khi nào?
Khi điều kiện không thỏa mãn.
Khi đủ số vòng lặp.
Khi tìm được output.
Khi điều kiện thỏa mãn.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mọi quá trình tính toán đều có thể mô tả và thực hiện dựa trên cấu trúc cơ bản là:
Cấu trúc tuần tự.
Cấu trúc rẽ nhánh.
Cấu trúc lặp.
Cấu trúc tuần tự, hoặc rẽ nhánh, hoặc lặp.
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
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 Other
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
