第6题: [单项选择]给出下列的代码,哪行在编译时可能会有错误
① public void modify( ){
② int i,j,k;
③ i = 100;
④ while( i > 0){
⑤ j = i * 2;
⑥ System.out.println("The value of j is" + j);
⑦ k=k + 1
⑧ }
⑨ }
A. line 4 B. line 6 C. line 7 D. line 8 参考答案:C 答案解析:局部变量在使用前必须进行初始化,而代码中的变量k在使用前 没有进行初始化。
第9题: [单项选择]Americans eat______ as they actually need every day. A. twice as much protein B. twice protein as much twice C. twice protein as much D. protein as twice much 参考答案:A 答案解析:[译文] 美国人每天吃的蛋白质是他们实际所需要的两倍。
[题解] 当表示“是……倍”时,所用的句型是:倍数+as+much/many/adj./adv.+as。如:Our classroom is
第20题: [单项选择]According to the passage, the writer looks upon the antismoking wall-builders' action ______. A. optimistically B. pessimistically C. unconcernedly D. skeptically 参考答案:D 答案解析:解析:根据文章,作者对反对吸烟者主张隔离的行为是质疑的。