A.One
B.Two
C.TwoThree
D.TwoThreeError
第1题
A、TwoThree
B、Two
C、TwoThreeError
D、One
第2题
以下程序是不完整的,请将______________位置上的语句填写完整。该程序的功能是计算并打印1,3,5,7的阶乘以及这些阶乘的和。完成程序,使程序输出结果如下: 1!=1 3!=6 5!=120 7!=5040 Sum=5167 代码清单如下: public class JavaTest_1{ public static void main(String[] args){ long sum; ____(1)_______; for(int i=1;i<8;i+=2) { long b="1;" for(int j="1;j<=___(2)_____;j++)" ______(3)________; system.out.println(i+"!="+b); sum+=b; } System.out.println(" sum="+sum); } } 要求: 请补全上面的程序,在答题时,务必在答题框中写好题号及对应的答案,格式如下: (1):_______________ (2):_______________ (3):_______________<br><p class=" answer">
2、以下程序是不完整的,请将______________位置上的语句填写完整。 本题要求:程序运行后,输出结果如下: Receive one int data i=1 Receive two int data x=2 y=3 Receive one double data d=12.56 Receive a string s=very interesting,is it not? 代码清单如下: class MethodOverloading { void receive(int i) { System.out.println("Receive one int data"); System.out.println("i="+i); } void receive(___(1)____ x,____(2)____ y) { System.out.println("Receive two int data"); System.out.println("x="+x+" y="+y); } void receive(double __(3)____) { System.out.println("Receive one double data"); System.out.println("d="+d); } void receive(String __(4)____) { System.out.println("Receive a string"); System.out.println("s= "+s); } } public class JavaTest_2 { public static void main(String[ ] args) { MethodOverloading mo=new MethodOverloading(); mo.receive(1); mo.receive(2,3); mo.receive(12.56); mo.receive("very interesting,is it not?"); } } 要求: 请补全上面的程序,在答题时,务必在答题框中写好题号及对应的答案,格式如下: (1):_______________ (2):_______________ (3):_______________ (4):_______________
第3题
A、一个星号
B、两个星号
C、三个星号
D、持续显示星号
第4题
第5题
A.一季度
B.二季度
C.三季度
D.四季度
第6题
A.a=2,b=1
B.a=1,b=1
C.a=1,b=0
D.a=2,b=2
第9题
第10题
A.a=2,b=1
B.a=1,b=1
C.a=1,b=0
D.a=2,b=2
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!