Encourage your children to try new things, but try not to ___ them too hard.
A. draw B. strike
C. rushD. push
第1题:
3、关于异常处理try语句语法描述正确的是()。
A.try块是必须的,catch块和finally块至少存在一个。
B.try语句中catch块和finally块顺序可以任意。
C.try语句中,catch块和finally块存在的个数可以任意。
D.try语句中,try块、catch块和finally块都是可选的成分。
第2题:
7、try-except结构中,能够执行except对应语句块的情形是().
A.try中语句出现异常时
B.正常程序结束后
C.try中语句有分支时
D.try中语句有循环时
第3题:
Python处理异常的方式包括:
A.try……except
B.try……except……
C.try……except……except……else
D.try……except……else……finally
第4题:
在完整的异常语句中,子句出现的顺序正确的是_______。
A.try—>except—>else—>finally
B.try—>else—>except—>finally
C.try—>except—>finally—>else
D.try—>except—>except—>finally
第5题:
9、try-except结构中,能够执行except对应语句块的情形是()。
A.try中语句出现异常时
B.正常程序结束后
C.try中语句有分支时
D.try中语句有循环时
第6题:
2、Java中,下面捕获异常的语句不正确的是()。
A.try{……} finally{……}
B.try{……} catch(Exception ex){……}
C.try{ try{……} } catch(Exception ex){……}
D.try{ try{……} finally{……} } catch(Exception ex){……}