
初二級下學期while小測
Authored by 周衍博 周衍博
Computers
8th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
何者為 while 迴圈的基本結構?
while (循環條件):
循環體
while 條件 do:
while -> 條件 {}
repeat while (條件):
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
下列哪一個敘述最適合使用 while 迴圈來實作?
當需要對每個元素進行一次操作時
當你知道要執行多少次時
當你需要根據條件重複執行,直到不符合條件為止
當你想一次性印出某個訊息
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
哪一個選項可以正確使用 while 迴圈從 1 數到 5?
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
執行以下程式會印出幾次 "Hello"?
1 次
2 次
3 次
無限次
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
請問在while ___?___ : 的空格中需填入甚麼才可導致以下結果?
False
Do
Break
True
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?