下列哪一個是 Python 中 while 迴圈的正確基本語法?

while 迴圈基礎測驗

Quiz
•
Computers
•
8th Grade
•
Medium
玉曄 陳
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
while (條件) {程式碼}
while 條件: 程式碼
while 條件 {程式碼}
while: 條件 程式碼
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
執行下列程式碼會印出幾次 "Hello"?
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
這個流程圖應該是什麼語法?
if...
Do ...while
For...
while ...Loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列哪一個 while 迴圈條件會使迴圈永遠不執行?
while True:
while 1 > 0:
while 0 > 1:
while 5 == 5:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列哪一個 while 迴圈條件會使程式碼至少執行一次?
while False:
while 0:
while 1:
while None:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
i = i + 1
i += 2
i = i - 2
i -= 2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列哪一個 while 迴圈會印出什麼?
1,2,3,4,5
1,2,3,4
1,2,3,4,5,6
0,1,2,3,4
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
正多邊形小畫家

Quiz
•
8th Grade
8 questions
資訊能力小測驗-三四年級

Quiz
•
8th - 10th Grade
14 questions
認識Micro:bit

Quiz
•
5th - 9th Grade
8 questions
4 年级 RBT - Scratch

Quiz
•
1st - 12th Grade
12 questions
生成式人工智能-實作5-AI編程

Quiz
•
8th Grade
10 questions
3-1資料處理

Quiz
•
7th Grade - University
10 questions
Scratch, 結構

Quiz
•
8th Grade
13 questions
Software Engineering

Quiz
•
KG - Professional Dev...
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade