Câu lệnh lặp while
Quiz
•
Arts
•
Professional Development
•
Practice Problem
•
Medium
Boom TBou
Used 2+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Câu 1. 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
20 sec • 1 pt
Câu 2. 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ô tan
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. 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
5.
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ả
6.
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 += 1
i += 1
print(x)
2
3
4
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp lệnh lặp với số lần chưa biết trước:
while <điều kiện> to <câu lệnh>
while <điều kiện> to <câu lệnh1> do<câu lệnh 2>
while <điều kiện> do: <câu lệnh>
. while <điều kiện>: <câu lệnh>
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
10 questions
Ramayan and Shaktimaan Quiz (CC-BY-4.0)
Quiz
•
1st Grade - Professio...
7 questions
Xbox vs Playstation
Quiz
•
KG - Professional Dev...
10 questions
KPOP Quiz♡
Quiz
•
1st Grade - Professio...
13 questions
SẢN PHẨM BB
Quiz
•
Professional Development
14 questions
Adobe Audition Waveform Editing
Quiz
•
12th Grade - Professi...
10 questions
Graphic Design
Quiz
•
Professional Development
10 questions
Design gráfico-impressão
Quiz
•
Professional Development
11 questions
Questionário GDA
Quiz
•
Professional Development
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Arts
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
