此题为判断题(对,错)。
第1题:
A.if(i>10)throwException(“something’swrong!”);
B.if(i>10)throwExceptione(“something’swrong!”);
C.if(i>10)thrownewException(“something’swrong!”);
D.if(i>10)thrownewExceptione("something’swrong!");
第2题:
Can we ever _____ hunger from the world?A. eliminate B. throw C. stop D. prevent
A eliminate hunger 消除饥饿
第3题:
Java程序中读入用户输入的一个值,要求创建一个自定义的异常,如果输入值大于10,使用throw语句显式地引发异常,异常输出信息为“something’swrong!”,语句为()。
A.if(I>10)throw Exception(“something’swrong!”);
B.if(I>10)throw Exceptione(“something’swrong!”);
C.if(I>10)thrownew Exception(“something’swrong!”);
D.if(I>10)thrownew Exceptione(“something’swrong!”);
第4题:
\[A\] resist\[B\] perform\[C\] insist\[D\] restrain
人们受教育的过程就是学习周密推理和劝说的过程。这要求我们能够抑制一种劝说而鼓励并运用另一种,根据句子前后逻辑,选项应与encourage构成相对语意,首先确定排除具有相同语意的\[B\] perform和\[C\] insist;\[D\] restrain意为“约束,控制(感情等)”,而\[A\] resist带有“不接受”的含义,更符合文意。
第5题:
A、safe
B、shelter
C、shroud
D、prevent
第6题: