题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-06-05 01:26:20

[单项选择] String foo = “blue”;    Booleanbar = new Boolean [1];    if (bar[0]) {    foo = “green”;    }   What is the result?()  
A.  Foo has the value of “”
B.  Foo has the value of null.
C.  Foo has the value of “blue”
D.  Foo has the value of “green”
E.  An exception is thrown.
F.  The code will not compile.

更多"String foo = “"的相关试题:

[单项选择] A customer has a mixed environment of AIX on POWER4 and POWER5, and x86 based systems running a supported distribution of Linux. There is a total of 7 partitions and three standalone x86 servers. The customer wants to consolidate their applications using a single 4-core POWER6 server.  What is the minimum PowerVM edition that supports the customer requirement?()
A.  PowerVM Lx86
B.  PowerVM Express Edition
C.  PowerVM Standard Edition
D.  PowerVM Enterprise Edition
[单项选择] You deploy a Windows 7 Enterprise image to a computer on the network. You need to display the detailedactivation and license status of the computer.  What should you run?()
A. Msconfig.exe.
B. Slui.exe.
C. Slmgr.vbs and specify the dli parameter.
D. W.inrm.vbs and specify the id parameter.
[单项选择] String foo = “blue”;  Boolean[]bar = new Boolean [1];  if (bar[0])  {  foo = “green”;  }   What is the result? () 
A.  Foo has the value of “”
B.  Foo has the value of null.
C.  Foo has the value of “blue”
D.  Foo has the value of “green”
E.  An exception is thrown.
F.  The code will not compile.
[单项选择] The en0 interface on Node1 of a two-node cluster has failed. This adapter is configured with a boot addressand under stable operations also has the service address of the cluster’s single resource group. The resourcegroup is configured with the fallback option. The HA network was configured for IPAT via aliasing and now theservice address is on the en1 interface in the cluster. The en0 interface has already been physically replacedand configured with the boot address. Which of the following will return the cluster to its original state andminimize cluster downtime?()
A. Run cluster synchronization.
B. Restart cluster services on Node1.
C. Perform a swap_adapter using C-SPOC
D. Restart cluster services on both nodes
[单项选择] An  administrator  is  attempting  to  update  a  software  product.  The  install  is  interrupted  by  a  system  failure.  Which of the following commands would be used to clean up the improperly applied filesets()
A. Ippchk -C
B. instfix -S
C. installp -c
D. installp -C
[填空题] Public class test (    Public static void main (String args) (   System.out.printIn (6^3);   )   )   What is the output? ()
[单项选择] public class test (    public static void main (String args) {    int i = 0xFFFFFFF1;  int j = ~i;   }    )   What is the decimal value of j at line 5?()
A.  0
B.  1
C.  14
D.  –15
E.  An error at line 3 causes compilation to fail.
F.  An error at line 4 causes compilation to fail.
[单项选择] 现有:   class TestFoo {   int x;   String y;   int getX() { return x; }   String getY() { return y; }   void setX(int x) {   int z = 7;   this.x = x;   }    }    可以添加多少个修饰符来封装此类?() 
A.  2
B.  3
C.  4
D.  5
[单项选择] 现有:  class TestFoo f      int x;  String y;  int  getX()  {  return  x;  }     String getY()  {return y;  }      void setX (int  x)  {      int Z=7:      this.x=x;      }      可以添加多少个修饰符来封装此类?()     
A. 5
B. 4
C. 3
D. 2
[简答题] 考虑下列的段表: 段号        始址           段长  0           200            500  1           890            30  2           120            100  3          1250            600  4          1800            88   对下面的逻辑地址,求物理地址,如越界请指明。1) <0,480> 2)<1,25> 3)<1,14> 4)<2,200> 5) <3,500> 6)<4,100>。
[单项选择] 现有:  class Banana2  f      static int X=2;  public static void main (String  []  args)  {     int X=2;   Banana2 b=new Banana2();     b.go(x);     }  static  {x+=x; }   void go (int x)  {    ++x;  System. out.println (x);    }         结果为:()    
A. 7
B. 5
C. 3
D. 2
[多项选择] public void test() {     try { oneMethod();  System.out.println("condition 1");  }  catch (ArrayIndexOutOfBoundsException e) {     System.out.println("condition 2");     }  catch(Exception e) {  System.out.println("condition 3");     }  finally {  System.out.println("finally");    }  }  Which will display if oneMethod run normally?()    
A.  condition 1
B.  condition 2
C.  condition 3
D.  finally
[单项选择] An administrator created a .env file in a user’s home directory to configure a number of custom environment variables for a local application. However, after the user logs out and then logs back into the system, the custom variables are not being set What is the most likely reason that the custom .env file is being ignored?()
A. A shell other than ksh is being used by the user.
B. The line ’export ENV=$HOME/.env’ is missing from /etc/profile.
C. The line ’export ENV=$HOME/.env’ is missing from the user’s .profile.
D. The env_profile attribute is not defined for the user within /etc/security/user.
[单项选择] abstract class abstrctIt {   abstract float getFloat ();   }   public class AbstractTest extends AbstractIt {   private float f1= 1.0f;   private float getFloat () {return f1;}   }   What is the result? ()
A.  Compilation is successful.
B.  An error on line 6 causes a runtime failure.
C.  An error at line 6 causes compilation to fail.
D.  An error at line 2 causes compilation to fail.
[填空题] MAC  *AR5+,A  Before                                    After  A      00 0000 1000                   A    ()  T         0400                       T      0400  FRCT      1                         FRCT    1  AR5      0100                       AR5    0101 Data Memory  0100h    1234                       0100h   1234
[单项选择]  You have a VPN server that runs Windows Server 2003 Service Pack 2 (SP2). The VPN server is configured to have a static IP address pool. The IP address range is 10.10.10.1 to 10.10.10.200. All clients connect to the server by using PPTP. You discover that the VPN server supports only five concurrent VPN connections. You need to ensure that the VPN server supports 100 concurrent VPN connections.  What should you do?()
A. From Network Interfaces, create a new demand-dial interface.
B. From the properties of the server, disable multilink connections.
C. From the port properties, configure the WAN Miniport (PPTP) device.
D. From the properties of the server, configure the IP address assignment settings.
[单项选择] class A {   public int getNumber(int a) {   return a + 1;   }   }    class B extends A {   public int getNumber (int a) {   return a + 2   }    public static void main (String args) {   A a = new B();   System.out.printIn(a.getNumber(0));   }   }   What is the result? () 
A.  Compilation succeeds and 1 is printed.
B.  Compilation succeeds and 2 is printed.
C.  An error at line 8 causes compilation to fail.
D.  An error at line 13 causes compilation to fail.
E.  An error at line 14 causes compilation to fail.
[单项选择] 11. String test = “Test A. Test B. Test C.”;  12. // insert code here  13. String[] result = test.split(regex);  Which regular expression inserted at line 12 will correctly split test into “Test A,” “Test B,” and “Test C”?()
A.  String regex = “”;
B.  String regex = “ “;
C.  String regex = “.*“.
D.  String regex = “//s”
E.  String regex = “//.//s*”;
F.  String regex = “//w[ /.] +“;
[单项选择] 11. String test = “This is a test”;  12. String[] tokens = test.split(”/s”);  13. System.out.println(tokens.length);  What is the result?() 
A.  0
B.  1
C.  4
D.  Compilation fails.
E.  An exception is thrown at runtime.

我来回答:

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

订单号:

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