People in the past preferred standing up to lying down when sleeping.A.RightB.WrongC.Not m
People in the past preferred standing up to lying down when sleeping.
A.Right
B.Wrong
C.Not mentioned
People in the past preferred standing up to lying down when sleeping.
A.Right
B.Wrong
C.Not mentioned
第1题
下列程序的输出结果是()。 public class Test { public static void main(String[] args) { char a1 = 'B', a2 = 'c'; if(a1+1<a2) ++a1; System.out.println(a1); } }
A.B
B.b
C.C
D.c
第2题
下列程序的输出结果是()。 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
第3题
执行下列程序段之后,输出的结果是()。public class Test{ public static void main(String[ ] args) { byte a = 2; short b = 3; long c = 4; c=a%b*4%b; System.out.println(c) ; } }
A.2
B.1
C.-1
D.-2
第4题
下列程序的输出结果是()。 public class Test { public static void main(String[] args) { char a1 = 'B', a2 = 'c'; if(a1+1<a2) ++a1; System. out. println(a1); } }
A.B
B.b
C.C
D.c
第5题
下列程序的输出结果是 public class Test { public static void main(String args[ ]) { System.out.println(100%3); System.out.println(100%3.0);} }
A.1和1
B.1和1.0
C.1.0和1
D.1.0和1.0
第6题
执行下面程序后输出的正确结果是public class Test{ public static void main(String args[]){ System.out.print(100%3); System.out.print(","); System.out.print(100%3.0); }}
A.1,1
B.1,1.0
C.1.0,1
D.1.0,1.0
第7题
下列程序段的输出结果是【 】。
public class Test {
void printValue(int m) {
do {
System.out.println("The value is"+m);
}while (--m>10);
}
public static void main (String args[]) {
int i=10;
Test t= new Test();
t.printValue(i);
}
}
第8题
下列程序的输出结果是 () public class Test { public static void main(String args[]) { System.out.println(100%3); System.out.println(100%0);} }
A.1和1
B.1和10
C.10和1
D.10和10
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!