
Câu hỏi về cấu trúc lặp trong Python
Authored by nguyen cuc
Information Technology (IT)
10th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Dùng câu lệnh while ta cũng thể hiện được cấu trúc lặp với số lần biết trước.
Dùng câu lệnh for ta cũng thể hiện được cấu trúc lặp với số lần không biết trước.
Trong Python có 2 dạng lặp: Lặp với số lần biết trước và lặp với số lần không biết trước.
Câu lệnh thể hiện lặp với số lần không biết trước phải sử dụng một biểu thức logic làm điều kiện lặp.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn chương trình sau: i=1 s=0 while <điều kiện>: s=s+i i=i+1 Đoạn chương trình trên tính tổng s=1+2+3+...+10, <điều kiện> là:
i<=10
i==10
i>=10
i>10
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn lệnh sau: for i in range(1,5): print(i) Trên màn hình i có các giá trị là:
0 1 2 3 4 5
1 2 3 4 5
0 1 2 3 4
1 2 3 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi có một (hay nhiều) thao tác cần được thực hiện lặp lại một số lần liên tiếp trong quá trình thực hiện thuật toán thì cần dùng
Cấu trúc vòng
Cấu trúc so sánh
Cấu trúc lặp
Cấu trúc rẽ nhánh
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn chương trình sau: i=0 while i<=5: s=s+i i=i+1 Trong đoạn chương trình trên vòng lặp được thực hiện bao nhiêu lần?
1
2
5
6
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python có mấy dạng lặp:
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Từ khóa thể hiện số lần lặp được biết trước là:
for
while
if
in
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
15 questions
Intro to Word Processing
Quiz
•
9th Grade - University
15 questions
Python Battle Royale: Who Will Survive in the End?❤️🤔
Quiz
•
9th - 12th Grade
20 questions
Algorytmy
Quiz
•
10th Grade
20 questions
Kelas 9 - Halaman 23 (UH Bab 1)
Quiz
•
9th Grade - University
20 questions
Python
Quiz
•
9th - 12th Grade
15 questions
Khảo Sát Chất Lượng Môn TIN 8
Quiz
•
8th Grade - University
18 questions
Тест по функциям Python (functions 3)
Quiz
•
9th - 12th Grade
20 questions
MID SEMESTER 1 FASE E 2025
Quiz
•
10th Grade
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade