while 迴圈基礎測驗

while 迴圈基礎測驗

8th Grade

10 Qs

quiz-placeholder

Similar activities

駭客入侵

駭客入侵

7th - 9th Grade

9 Qs

資訊安全_如何分辨網路訊息真偽

資訊安全_如何分辨網路訊息真偽

7th - 8th Grade

10 Qs

STEM 編程小組選拔

STEM 編程小組選拔

8th Grade

10 Qs

CodeMonkey程式觀念測驗(琢思 201812078)

CodeMonkey程式觀念測驗(琢思 201812078)

3rd - 9th Grade

10 Qs

陣列概念複習

陣列概念複習

8th Grade

9 Qs

翻翻看APP

翻翻看APP

8th - 9th Grade

10 Qs

PYTHON CAMP 2-1

PYTHON CAMP 2-1

6th - 8th Grade

15 Qs

個人私隱知多少?

個人私隱知多少?

6th - 8th Grade

12 Qs

while 迴圈基礎測驗

while 迴圈基礎測驗

Assessment

Quiz

Computers

8th Grade

Medium

Created by

玉曄 陳

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers