Search Header Logo

python2-lesson03

Authored by hang zheng

Computers

2nd - 12th Grade

Used 99+ times

python2-lesson03
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

1 min • 1 pt

Media Image

运行图中程序,最后输出的结果是?

100 90

90 90

100 100

90 100

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

运行图中程序,最后输出的结果是?

True

true

False

false

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

当编写if条件语句时,写在if语句中的代码需要?

缩进2个空格

缩进4个空格

缩进8个空格

不需要缩进空格

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

使用if-else条件语句时,什么时候会执行else语句中的代码?

if中的代码执行完毕之后

if 后面的条件结果为True的时候

if 后面的条件结果为False的时候

else 后面的条件结果为True的时候

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

运行图中代码,最后输出的结果是?

1 2 3

1 2

1 3

2 3

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

进行条件语句的判断时,if是必须的,else不是必须的

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

if和else中的代码可以同时执行

True

False

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?