题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-11-28 02:39:03

[单项选择] int i= 1, j= 10 ;  do (  if (i++> --j) continue;  ) while (i<5);   After execution, what are the values for I and j?()  
A.  i = 6 and j= 5
B.  i = 5 and j= 5
C.  i = 6 and j= 4
D.  i = 5 and j= 6
E.  i = 6 and j= 6

更多"int&ensp;i=&ensp;1,&ensp;j=&ensp;10"的相关试题:

[多项选择] int I=1, j=0   switch(i) {   case 2:   j+=6;   case 4:   j+=1;    default:    j +=2;   case 0:   j +=4;   }   What is the value of j at line 16?()
A.  0
B.  1
C.  2
D.  4
E.  6
[多项选择] int i = 0, j = 5;  tp;   for (;;) {  i++;  for(;;) {  if (i> --j) {  break tp;  break tp;  }  }  System.out.println(“i=” +i “,j =”+j); } What is the result?()  
A.  i = 1, j = 0
B.  i = 1, j = 4
C.  i = 3, j = 4
D.  i = 3, j = 0
E.  Compilation fails.
[单项选择] int i = 0, j = 1;  if ((i++ == 1) && (j++ == 2)) {  i = 42;  }  System.out.println(“i = “ + i + “, j = “ + j);   What is the result?()  
A.  i = 1, j = 2
B.  i = 1, j = 1
C.  i = 42, j = 2
D.  i = 42, j = 1
E.  Compilation fails.
[多项选择] 1. int I=1, j=0  2.    3. switch(i)  {  4. case 2:  5. j+=6;  6.    7. case 4:  8. j+=1;  9.    10. default:  11. j +=2;  12.    13. case 0:  14. j +=4;  15. }  16.      What is the value of j at line 16?()
A.  0
B.  1
C.  2
D.  4
E.  6
[单项选择] int i= 1, j= 10 ;   do (   if (i++> --j) continue;  ) while (i<5);   After execution, what are the values for I and j? ()
A.  i = 6 and j= 5
B.  i = 5 and j= 5
C.  i = 6 and j= 4
D.  i = 5 and j= 6
E.  i = 6 and j= 6
[单项选择] int i = 1,j = 10;  do {  if(i>j) {  break;  } j--;  } while (++i <5);  System.out.println(“i =” +i+” and j = “+j); What is the result?()
A.  i = 6 and j = 5
B.  i = 5 and j = 5
C.  i = 6 and j = 4
D.  i = 5 and j = 6
E.  i = 6 and j = 6
[单项选择] 现有:  package mypack;  import javax.swing.JButton;      import javax.swing.JFrame;  public class Butt extends  JFrame  {     public static v.id main(string[]  args)  {      //  TODO Auto-generated method stub      Butt butt=new Butt();     }  Butt(){  JButton  jbl=new JButton("Hello");      JButton jb2=new JButton("World");      add(jbl);      add(jb2);  setSize(300,300);      setVisible(true);     }    } 下列关于代码运行效果的叙述正确的是哪项? ()   
A. 2个按钮紧靠着排列,Hello在World的左侧
B.  Hello占据Frame的整个区域
C.  World占据Frame的整个区域
D. 2个按钮都在Frame的顶部
[单项选择] int i = 1,j = -1;  switch (i) {  case 0, 1:j = 1;  case 2: j = 2;  default; j = 0;  }  System.out.println(“j=”+j);  What is the result?()  
A.  j = -1
B.  j = 0
C.  j = 1
D.  j = 2
E.  Compilation fails.
[单项选择] Import java.applet.Applet; Import java.awt*;  Public class ImageDemo extends Applet{  Image img;  Public void init(){  Img=getImage(getCodeBase(),”11.gif”);//1 }  Public void paint(Graphics g){ Int w=img.getHeight(this);  Int h=img.getHeight(this);  g.drawImage(img,120,60,w/2,h/2,this);//2  g. drawImage(img,150,0,w*2,h*2,this);//3 }  }以上代码第()行将图像放大。 
A. 1
B. 2
C. 3
D. 代码并没有将图像放大
[多项选择] Given:  Integer i = new Integer (42);  Long l = new Long (42);  Double d = new Double (42.0);   Which two expression evaluate to true?()
A.  (i = = l)
B.  (i = = d)
C.  (d = = l)
D.  (i.equals(d))
E.  (i.equals(i))
F.  (i.equals(42))
[单项选择] int i = 0;  for (; i <4; i += 2) {  System.out.print(i + “”);  }  System.out.println(i);  What is the result?()  
A.  0 2 4
B.  0 2 4 5
C.  0 1 2 3 4
D.  Compilation fails.
E.  An exception is thrown at runtime.
[单项选择] for (int i =0; i < 4; i +=2) {  System.out.print(i + “”);  }  System.out.println(i);  What is the result?()  
A.  0 2 4
B.  0 2 4 5
C.  0 1 2 3 4
D.  Compilation fails.
E.  An exception is thrown at runtime.
[单项选择] 现有:  interface  I  {  void go();  }      abstract class A implements I { }      class C extends A  {     void go(){ }     }  结果是什么?()   
A. 代码通过编译
B. 由于第1行的错误导致编译失败
C. 由于笫3行的错误导致编译失败
D. 由于第6行的错误导致编译失败
[单项选择] 循环语句:  for ( i=1; i<=10; i++) { duplicateMovieClip(“ba”, “ba” + i ,i) ;  eavl(“ba” + i ). _x=10*i }  该语句完成的功能是()。
A. 将实例ba为母体复制10个,同时这些复制出来的实例每间隔1个像素,水平排列在舞台上
B. 将实例ba为母体复制10个,同时这些复制出来的实例每间隔10个像素,水平排列在舞台上
C. 将实例ba为母体复制10个,同时这些复制出来的实例每间隔1个像素,垂直排列在舞台上
D. 将实例ba为母体复制10个,同时这些复制出来的实例每间隔10个像素,垂直排列在舞台上
[多项选择] Integer i = new Integer (42);   Long 1 = new Long (42);  Double d = new Double (42.0); Which two expressions evaluate to True? ()
A.  (i ==1)
B.  (i == d)
C.  (d == 1)
D.  (i.equals (d))
E.  (d.equals (i))
F.  (i.equals (42))
[单项选择] A customer with a small IT budget has one data center. Their main application is a database running on an IBM System Storage DS8000. The database has a data change rate of 50% per day. Once a week, they must do a point-in-time backup from the database to tape. The time it takes to run the backup now exceeds the backup window allowed. The customer requests a proposal to reduce database downtime caused by running backups, with nearly no impact to production volumes.    In addition to the tape backup, which DS8000 feature should a technical specialist propose()
A. FlashCopy
B. FlashCopy SE
C. Metro Mirror
D. Global Mirror
[单项选择] You are managing an ASM instance. You previously issued the following statements:   ALTER DISKGROUP dg1 DROP DISK disk2;  ALTER DISKGROUP dg1 DROP DISK disk3;  ALTER DISKGROUP dg1 DROP DISK disk5;   You want to cancel the disk drops that are pending for the DG1 disk group.  Which statement should you issue?()  
A.  ALTER DISKGROUP dg1 UNDROP disk2,disk3,disk5
B.  ALTER DISKGROUP dg1 UNDROP
C.  ALTER DISKGROUP dg1 UNDROP DISKS
D.  You cannot cancel the pending disk drops

我来回答:

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

订单号:

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