第11题: [填空题]下列程序的运行结果是 【14】 。
public class Test {
public static void main (String args[]) {
String s1="hello!";
System.out.println (s1.toUpperCase( ));
}} 参考答案:HELLO! 答案解析:[解析] 在String类的常用方法中,toUpperCaee()方法将当前字符串中的所有小写字母转化成大写,其他字符保持不变。
第23题: [单项选择]The teacher, as well as all his students, ______ by the dancer's performance. A. was impressed B. had impressed C. impressed D. were impressed 参考答案:A 答案解析:本题考查的是主谓一致。主语应是teacher,动词用第三人称单数形式。as well as以及,这种句型根据as well as前的主语确定动词形式。