According to the passage, what is the best for both parents and children?
A.They should adjust themselves to sharing the family expenses.
B.Children should leave their parents when they are grown up.
C.Adult children should visit their parents from time to time.
D.Parents should support their adult children when they are in trouble.
第1题
下列程序的输出结果是 class Demo { void test() { Systeme.out.pnnt("NO");} void test(int i) { System.out.print(a);} void test(int a,int b) { System.out.print(a+b);} } class Test { public static void main(String args[ ] ) { Demo de=new Demo(); de.test(); de.test(5); de.test(6,8); } }
A.No 5 6 8
B.5 6 8 No
C.No 5 14
D.8 6 No 5
第2题
下列程序的输出结果是()。 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
第3题
下列程序段的输出结果是【 】。
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);
}
}
第4题
下列程序的输出结果是_______。
class Test{
public static void main(String args []){
int m=6;
do{m--:}while(m>0);
System.out.println("m="+m);
}
}
第5题
下列程序的输出结果是()。 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
第6题
下列程序的输出结果是()。 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
第7题
执行下列程序段之后,输出的结果是()。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
第8题
下列程序的输出结果是()。 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); } }
A. The value is 8
B.The value is 9
C.The value is 10
D.The value is 11
第9题
下列程序的输出结果是()。 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); } }
A. The value is 8
B.The value is 9
C.The value is 10
D.The value is 11
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!