python2-lesson12

python2-lesson12

University

10 Qs

quiz-placeholder

Similar activities

資訊科技隨堂測驗-變數與算術運算

資訊科技隨堂測驗-變數與算術運算

11th Grade - University

10 Qs

漢字の音読みと訓読みクイズ

漢字の音読みと訓読みクイズ

3rd Grade - University

10 Qs

CX CS FY20 Q1 Workshop 下午

CX CS FY20 Q1 Workshop 下午

University

10 Qs

Operating-System Operations

Operating-System Operations

University

10 Qs

papa理論

papa理論

7th Grade - University

10 Qs

2425 S5 ICT Lesson Quiz - DB Normalization

2425 S5 ICT Lesson Quiz - DB Normalization

11th Grade - University

15 Qs

EV3高二上期末測驗

EV3高二上期末測驗

7th Grade - University

10 Qs

3-1資料處理

3-1資料處理

7th Grade - University

10 Qs

python2-lesson12

python2-lesson12

Assessment

Quiz

Computers

University

Medium

Created by

hang zheng

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

在异常处理机制中,用于检测代码是否出现异常的是?

try语句

except语句

else语句

finally语句

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

用于捕获异常并进行处理的语句是?

try

except

else

finally

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

在异常处理机制中,哪几个语句不是必须的?(多选题)

try

except

else

finally

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

"捕获程序异常"

"代码正常运行"

"代码正常运行"

"程序结束"

程序报错,直接中止

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

观察图中程序,此时的异常处理机制可以捕获哪几个异常?

可以捕获所有异常

只能捕获ZeroDivisionError异常

可以捕获ZeroDivisionError和IndexError异常

什么异常都无法捕获

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

运行图中程序,当i=6时,程序会如何运行?

程序报错,直接中止

产生异常并被捕获,输出"除数不能为0"

产生异常并被捕获,不输出任何内容

不产生任何异常,程序正常运行

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

运行图中程序,当i=0时,程序如何运行?

程序直接报错,整个程序中止

产生异常并被捕获,循环中止

产生异常并被捕获,继续下一次循环

程序正常运行,并进行下一次循环

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?