Search Header Logo

Python_elif_AND_OR_NOT

Authored by Lam Ken

Computers

8th Grade

Python_elif_AND_OR_NOT
AI

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

Media Image

圖中程式碼的輸出結果是什麼?

天氣很熱

天氣適中

天氣有點冷

天氣很冷

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

圖中程式碼的輸出結果是什麼?

優秀

良好

需要努力

無輸出

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

請填空完成程式,使其符合題意:
如果 age 小於 12 或大於等於 60,輸出 "票價為 10 元",否則輸出 "票價為 20 元"。

age >= 12 and age < 60

age < 12 or age >= 60

age > 12 or age < 60

age < 60 and age > 12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

請填空完成以下程式,使其符合題意:
如果 is_student 為 True 且 has_card 為 True,輸出 "優惠票";否則輸出 "普通票"。

is_student or has_card

is_student and not has_card

is_student and has_card

not is_student and has_card

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

圖中程式碼的輸出結果是什麼?

條件成立

部分成立

條件不成立

無輸出

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers