题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-23 19:37:56

[单项选择]下列程序执行后,i的值是( )。   public class Testfff {   pubic static void main(String args[])    {      int i;10;      do { i/=2;}      while(i- - >1);      System.out.println(i);     }    }
A. 1
B. 5
C. 2
D. -1

更多"下列程序执行后,i的值是( )。   public class "的相关试题:

[单项选择]下列程序执行后,i的值是( )。   public class Testfff {   pubic static void main(String args[])    {      int i;10;      do { i/=2;}      while(i- - >1);      System.out.println(i);     }    }
A. getCodeBase( )
B. getParameter(String)
C. getApplnfo( )
D. showStatus(String)
[单项选择]下列程序执行后,i的值是  public class Testfff {  pubic static void main(String args[])   {     int i;10;     do { i/=2;}     while(i- - >1);     System.out.println(i);    }   }
A. 1
B. 5
C. 2
D. -1
[单项选择]下列语句序列执行后,j的值是______。 public class ex2 { public static void main(String[] args) { int j=2, i=5; while( j<i--) j++; System.out.println(j); } }
A. 3
B. 2
C. 4
D. 5
[单项选择]下面程序段的输出结果是______。 public class ex46 { public static void main(String args[]) { String str="Hello,"; str = str + "Guys!"; System.out .println (str); } }
A. Hello, Guys!
B. Guys!
C. Hello,
D. 编译不通过
[单项选择]下列程序的执行结果是( )。    public class Testgg {     public static void main(String args[]) {       float t=9.0f;       int q=5;       System.out.println((t++)*(- -q));     }    }
A. 12
B. 11
C. 10
D. 9
[单项选择]下列程序的执行结果是( )。    public class Testaa {     public static void main(String args[ ])      { System.out.println(5/2);     }    }
A. 复选框
B. 列表框
C. 命令按钮
D. 选项组

我来回答:

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

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码