Search Header Logo

Python if–else Practice 2026

Authored by Akirapeter Yong

Computers

12th Grade

Used 4+ times

Python if–else Practice 2026
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python 中用来做判断的关键字是?
(Which keyword is used for decision making in Python?)

for

if

while

else

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下哪个是正确的 if 语法?
(Which one is the correct if syntax?)

if score > 60

if score > 60:

if (score > 60)

if score > 60 then

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

判断题:Python 的 if 后面一定要有冒号 ( : )。
(True or False: A colon (:) is required after an if statement in Python.)

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下哪个符号是“等于”判断?
(Which symbol is used to check equality in Python?)

=

==

!=

>=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

判断题:else 一定要配合 if 使用。
(True or False: else must always be used with if.)

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

以下程序的输出是什么?
(What is the output of the following code?)

Pass

Fail

Error

Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

以下程序的输出是什么?
(What is the output of the following code?)

Can vote

Cannot vote

Error

Nothing

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?