Search Header Logo

while 迴圈基礎測驗

Authored by 玉曄 陳

Computers

8th Grade

Used 5+ times

while 迴圈基礎測驗
AI

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

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

while (條件) {程式碼}

while 條件: 程式碼

while 條件 {程式碼}

while: 條件 程式碼

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

執行下列程式碼會印出幾次 "Hello"?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

這個流程圖應該是什麼語法?

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

Media Image

下列哪一個 while 迴圈會印出什麼?

1,2,3,4,5

1,2,3,4

1,2,3,4,5,6

0,1,2,3,4

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?