
Câu hỏi về lệnh lặp trong Python
Authored by Nguyễn Trang
Other
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong các phát biểu sau, phát biểu nào chưa chính xác?
While là lệnh lặp với số lần không biết trước.
For là lệnh lặp với số lần xác định trước.
Khối lệnh lặp while được thực hiện cho đến khi <điều kiện> = False.
Số lần lặp của lệnh lặp for luôn được xác định bởi vùng giá trị của lệnh range().
2.
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.
3.
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.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh sau giải bài toán nào: while M != N: if M > N: M = M - N else: N = N - M
Tìm UCLN của M và N.
Tìm BCNN của M và N.
Tìm hiệu nhỏ nhất của M và N.
Tìm hiệu lớn nhất của M và N.
5.
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.
6.
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ả.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. 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ả.
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
8 questions
Technical Drawing
Quiz
•
9th - 12th Grade
16 questions
Intro to Hospitality & Service Review
Quiz
•
9th - 12th Grade
13 questions
Top gear and Fudge quiz
Quiz
•
KG - 10th Grade
10 questions
Thể dục 6
Quiz
•
KG - University
10 questions
Football Trivia (2020)
Quiz
•
KG - 10th Grade
15 questions
Quarter 2- Module 5 Philippine Popular Music_Pretest
Quiz
•
10th Grade
15 questions
El gigante egoísta
Quiz
•
10th Grade
15 questions
Математика - 1-9 классы
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade