顺序执行下列两条语句,输出结果是______。
String s="You are a pretty boy!";System.out.println(s.length( ));
第1题:
下列程序的输出结果是( )。 public class Test { public static void main (String[] args) { String s="hello"; s.replace ('r','m'); System.out.println(s); } }
A.hello
B.HELLO
C.hemmo
D.HEMMO
第2题:
执行如下语句之后,输出的结果是______。 public class ex36 { public static void main(String[] args) { int x=-6, y=6; x=x+y--; System.out.println (x); } }
A.-12
B.12
C.-1
D.0
第3题:
顺序执行以下两个语句的输出结果是: 。 String s = "广东海洋大学"; System.out.println(s.length());
第4题:
执行如下语句之后,输出的结果是______。 public class ex24 { public static void main(String[] args) { int x=5,y=3; x+=X-- *--y; System.out.println{x); } }
A.0
B.1
C.true
D.false
第5题:
下列程序执行后的输出结果是( )。 #include<stdio.h> #include <string.h> main() { char arr[2][4]; strcpy(arr[0],"you");strcpy(arr[1],"me"); arr[0][3]='&'; Printf("%s\n",arr); }
A.you&me
B.you
C.me
D.err