
Cấu Trúc Vòng Lặp While
Authored by Nguyễn Trang
Other
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh `while` dùng để làm gì trong lập trình?
Thực hiện một lần duy nhất đoạn mã
Lặp đoạn mã một số lần xác định
Lặp đoạn mã khi điều kiện còn đúng
Ngắt chương trình
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, cú pháp của vòng lặp `while` là gì?
while (condition) { statements }
while: condition { statements }
while condition:
while = condition:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp `while` kết thúc khi nào?
Khi hết bộ nhớ
Khi điều kiện sai
Khi người dùng nhập số 0
Khi chương trình dừng đột ngột
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau thực hiện điều gì? x = 1; while x < 5: print(x); x += 1
In ra các số từ 0 đến 5
In ra các số từ 1 đến 4
In ra các số từ 1 đến 5
Vòng lặp vô hạn
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vì sao cần tăng biến `x` trong vòng lặp `while`?
Để giảm tốc độ chương trình
Để tránh lặp vô hạn
Để in ra chữ cái
Để kiểm tra cú pháp
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi sử dụng `while`, nếu điều kiện ban đầu là `False` thì:
Vòng lặp sẽ không thực hiện lần nào
Vòng lặp vẫn thực hiện 1 lần
Lỗi cú pháp xảy ra
Máy tính treo
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đoạn mã đúng để tính tổng từ 1 đến 5:
sum = 0; i = 1; while i < 6: sum += i; i += 1
sum = 0; i = 1; while i <= 5: i += 1; sum += i
sum = 0; i = 1; while i <= 5: sum += i
sum = 0; i = 1; while i <= 5: sum += i; i += 1
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
Hái lộc đầu năm
Quiz
•
10th Grade
10 questions
2425 P4 GS Quiz 1 (World Culture)
Quiz
•
4th Grade - University
10 questions
Fortnite
Quiz
•
KG - Professional Dev...
14 questions
Vocabulary Questions on Waves and Energy
Quiz
•
4th Grade - University
12 questions
Kiểm tra trình độ bóng đá Việt Nam
Quiz
•
1st Grade - University
8 questions
Công nghệ 2021
Quiz
•
6th - 12th Grade
11 questions
Câu hỏi về máy tính
Quiz
•
3rd Grade - University
15 questions
STOCK MARKET
Quiz
•
8th Grade - University
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