题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-01-30 02:00:55

[单项选择]运行下面程序后,正确的输出结果是( )。 public class Sun { public static void main(String args[ ]) { int x=6; if(x>6) System.out.println("x>6"); else if(x<8) System.out.println("x<8"); else if(x==6) System.out.println("x=6"); } } A) x<8x=6 B) x<8 A) x=6 D) x<8或x=6

更多"运行下面程序后,正确的输出结果是( )。 public clas"的相关试题:

[单项选择]运行下面程序后,正确的输出结粜是( )。
public class Sun

public static void main(String args[])

int x=6;
if(x>6)
System.out.printin("x>6");
else
if(x<8)
System.out.println("X<8");
else
if(x==6)
System.out.println("x=6");


A. x<8x=6
B. x<8
C. x=6
D. x<8或x=6
[单项选择]运行下面程序后,正确的输出结粜是( )。 public class Sun { public static void main(String args[]) { int x=6; if(x>6) System.out.printin("x>6"); else if(x<8) System.out.println("X<8"); else if(x==6) System.out.println("x=6"); } }
A. x<8x=6
B. x<8
C. x=6
D. x<8或x=6
[单项选择]执行下面程序后输出的正确结果是
public class Test
public stoic void main (String args[])
byte x=3, y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0, 1
B. 20.0, 1.0
C. 20,0
D. 20, 1.0
[单项选择]执行下面程序后输出的正确结果是
public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]执行下面程序后输出的正确结果是
Public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(”,”);
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]下面程序的输出结果是( )。
public class Sun

public static void main(String args[ ])

int x=0;
for(int i=1;i<=4;i++)

x=4;
for(int j=1;j<=3;j++)

x=3;
for(int k=1;k<=2;k++)

x-x+6;



System.out.println(x);


A. 7
B. 15
C. 157
D. 538
[单项选择]下面程序的输出结果是( )。
public class Sun

public static void main(String args[])

int[]a=1,2,3,4;
int j=1,s=0;
for(int i=3;i>=0;i--)

s=s+a[i]*j;
j=j*10;

System.out.println(s);


A. 1234
B. 21
C. 43
D. 4321

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码