(2-4)下面Java程序代码段的第条语句有错误。 int x;//(1) double y;//(2) float z;//(3) x=500;//(4) y=3.1415;//(5) z=3.1415;//(6)
举一反三
- (2-4)下面Java程序代码段的第()条语句有错误。int x;//(1)...//(5)z=3.1415;//(6)
- 已有定义语句:int x=2,y=4,z=6;if(x>y) z=x;x=y;y=z;执行上述语句后x,y,z的值是____。 A: x=4,y=2,z=2 B: x=4,y=4,z=2 C: x=4,y=6,z=6 D: x=4,y=2,z=6
- 已有定义语句:int x=6,y=4,z=5;,执行以下语句if(x A: x=4,y=5,z=6 B: x=5,y=6,z=4 C: x=4,y=6,z=6 D: x=4,y=5,z=5
- int x=3,y,z;<br/>y=-x++;<br/>z=y+8/++x;<br/>Console.WriteLine{{0},{1},{2}",x,y,z);<br/>此程序的输出结果是____。 A: 5,-3,-2 B: 4,-3,-1 C: 4,-4,-2 D: 5,-4,-2
- 执行以下语句的结果:dict1={"x":1,"y":2,"z":3}dict2={"x":4,"a":5}dict1.update(dict2) A: {"x":1,"y":2,"z":3,"x":4,"a":5} B: {"x":4,"a":5,"x":1,"y":2,"z":3} C: 有重复项,结果有误! D: {"x":4,"y":2,"z":3,"a":5}