A.树立强烈的服务意识
B.重视预防工作
C.做好提醒工作
D.热情接待
E.尽力帮助
第1题
请阅读下面程序 public class ForLoopStatement { public static void main(string []args){ int i,j; for (i=1; i<5; i++) { //i循环 for (j=1;j<=i;j++) //j循环 System.out.print(i+"×"+j+"="+i*j+" "); System.out.println(); } } } 程序完成后,i循环和j循环执行的次数分别是
A.4,10
B.8,9
C.9,8
D.10,10
第2题
阅读下面程序 public class ForLoopStatement { public static void main(String[] args) { int i,j; for(i=1;i<5;i++){ //i循环 for(j=1;j<=i;j++)System.out.print(i+"*"+j+"="+i*j+" "); //j循环 System.out.println(); } } } 程序完成后,i循环和J循环执行的次数分别是
A.4,10
B. 8,9
C.9,8
D.10,10
第3题
(18 )请阅读下面程序/.
public class ForLoopStatement {
public static void main (String[] args ){
int I,j :
for (i=l;i<5;i++ ){ //i 循环
for (j=1;j<=i;j++ ) //j 循环
System.out.print (i+" X "+j+ ” = +i*j+" ” );
System.out.println () ;
}
}
}
程序完成后, i 循环和 j 循环执行的次数分别是
A ) 4 , 10
B ) 8 , 9
C ) 9, 8
D ) 10 , 10
第4题
(24 )阅读下面程序
import javax.swing.JOptionPane;
public class BreakLabelTest {
public static void main(String args[] ){
String utput = "";
stop: {
for (int row = 1; row <= 10; row++ ) {
for (int column = 1; column <= 5 ; column++ ) {
if (row == 5 )
break stop;
output += "* ";
}
output += "\n";
}
output += "\nLoops terminated normally";
}
JOptionPane.showMessageDialog(
null, output," 用一个标志测试 break 语句 ",
JOptionPane.INFORMATION_MESSAGE );
System.exit(0 );
}
}
程序运行结果是
A )窗口中有 5 行 * * * * *
B )窗口中有 5 行 * * * *
C )窗口中有 4 行 * * * * *
D )窗口中有 6 行 * * * * *
第5题
阅读下面程序 public class ConcatTest{ public static void main(String[] args) { String strl = "abc"; String str2 = "ABC"; String str3 = str1.concat(str2); System.out.println(str3); } } 程序的运行结果是:
A.abe
B.ABC
C.abcABC
D.ABCabc
第6题
请阅读下面程序 public class ExampleStringBuffer{ public static void main(String []args){ StringBuffer sb=new StringBuffer("test"); System.out.println("buffer="+sB) ; System.out.println("length="+sb.length());} } 程序运行结果中在"length="后输出的值
A.10
B.4
C.20
D.30
第7题
请阅读下面程序 public class ExampleStringBuffer{ public static void main(String []args){ StringBuffer sb=new StringBuffer("test"); System.out.println("buffer="+sB) ; System.out.println("length="+sb.length());} } 程序运行结果中在"length="后输出的值
A.10
B.4
C.20
D.30
第8题
阅读下面程序 public class Test2 { public static void main(String args[]){ int a=1O, b=4, c=20, d=6; System.out.println(a++*b+c*--D) ; } } 程序运行的结果是
A.144
B.160
C.140
D.164
第9题
给出下面代码段:x处于什么范围时打印字符串“second”。 () public class forLoopStatement { public static void main(String[]args) { int x=______;//给x赋值 if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} } }
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!