单项选择题
Given:
If class Donkey is invoked twice, the first time without assertions enabled,and the second time with assertions enabled, what are the results?()
A.no output
B.no outputassert is on
C.assert is on
D.no outputAn AssertionError is thrown.
E.assert is onAn AssertionError is thrown.
点击查看答案
相关考题
-
单项选择题
Given: What is the result?()
A.5,6
B.5,5
C.6,5
D.6,6 -
多项选择题
Given: Under which three circumstances will the code on line 37 be executed?()
A.The instance gets garbage collected.
B.The code on line 33 throws an exception.
C.The code on line 35 throws an exception.
D.The code on line 31 throws an exception.
E.The code on line 33 executes successfully. -
单项选择题
Given: If some sort of exception is thrown at line 34, which output is possible?()
A.a
B.b
C.c
D.ac
E.abc
