Search Header Logo

Python判斷式

Authored by 闕河正 闕河正

Mathematics, Science, World Languages

1st Grade - Professional Development

Used 19+ times

Python判斷式
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python 語言以下列哪一個符號及縮排來表示程式區塊?

:

!

#

\

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if 條件式: 的敘述中,下列哪一項正確?

當條件式為False時,就會執行程式區塊的敘述。

當條件式為True時,就會執行程式區塊的敘述。

當條件式改變時,就會執行程式區塊的敘述。

當發生錯誤時,就會執行程式區塊的敘述。

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

[if...elif...else]條件式中,如果所有條件式都是False,則執行下列哪一個程式區塊?

if

elif

else

都不執行

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

[if...else...]條件式的敘述中,下列哪一項正確?

條件式只可使用關係運算式

條件式只可使用邏輯運算式

都可以

都不行

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

變數a的值為3,執行下列程式後顯式的結果為何?

1

2

12

不顯示任何內容

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

變數a的值為5,執行下列程式後顯示的結果為何?

1

2

12

不顯示任何內容

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

請問當a = 4的時候,下列程式執行後結果為何?

1

2

3

123

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?