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

[单项选择] 11. String test= “a1b2c3”;  12. String[] tokens = test.split(”//d”);  13. for(String s: tokens) System.out.print(s +“ “);  What is the result?() 
A.  a b c
B.  1 2 3
C.  a1b2c3
D.  a1 b2 c3
E.  Compilation fails.
F.  The code runs with no output.
G.  An exception is thrown at runtime.

更多"11. String test= &ld"的相关试题:

[单项选择] 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[ /.] +“;
[简答题] 已知(AX)=836BH,X分别取下列值,执行“TEST  AX,X”后,标志位ZF、CF、OF、SF各是什么? (1)X=0001H (2)X=8000H  (3)X=0007H (4)X=0FFFFH (5)X=0
[单项选择] 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.
[单项选择] Given: 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,correctly splits 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*";
[单项选择] You are performing a test deployment of Microsoft Enterprise Desktop virtualization (MED-V) 2.0. You discover that applications deployed by using MED-V run much slower than expected. You need to recommend configuration changes to improve the performance of the MED-V workspace applications. Which configuration changes should you recommend?()
A. Disable cached mode in Outlook 2010
B. Add exclusions to Forefront EndPoint Protection
C. Add URL exclusions to the Forefront TMG Client
D. Modify the network settings in SharePoint Workspace 2010
[单项选择]  public class Test {  public static void replaceJ(string text)  {  text.replace (‘j’, ‘l’);  }  public static void main(String args[])  {  string text = new String (“java”)  replaceJ(text);  system.out.printIn(text);  }  }      What is the result?()  
A.  The program prints “lava”
B.  The program prints “java”
C.  An error at line 7 causes compilation to fail.
D.  Compilation succeeds but the program throws an exception.
[单项选择] public class test (   public static void main(string args) {   int 1= 0;   while (i) {   if (i==4) {   break;  }   ++i;  }   }   )   What is the value of i at line 10?()
A.  0
B.  3
C.  4
D.  5
E.  The code will not compile.
[单项选择] public class test (   private static int j = 0;     private static boolean methodB(int k) (  j += k;    return true;   )    public static void methodA(int i) {    boolean b:   b = i < 10 | methodB (4);    b = i < 10 || methodB (8);   )     public static void main (String args) } (    methodA (0);  system.out.printIn(j);   )    )   What is the result?()  
A.  The program prints “0”
B.  The program prints “4”
C.  The program prints “8”
D.  The program prints “12”
E.  The code does not complete.
[单项选择] public class Test {   public static void main (Stringargs) {   String foo = args[1];   String bar = args;   String baz = args;   System.out.printIn(“baz = ” + baz);  }   }   And the output:  Baz = 2   Which command line invocation will produce the output?()
A.  Java Test 2222
B.  Java Test 1 2 3 4
C.  Java Test 4 2 4 2
D.  Java Test 4 3 2 1
[多项选择] You are designing a test environment that uses Hyper-V. The test environment must enable testers to perform the following tasks:  Quickly switch between running states.Re-create a specific state or condition.Return the state of the environment to a specific point in time.Recover from a faulty software update by using the fastest method. You need to ensure that the test environment meets the requirements.  What are two possible tools that you can use to achieve this goal?()
A. Hyper-V Manager
B. Microsoft System Center Data Protection Manager (DPM) 2007 with SP1
C. Microsoft System Center Virtual Machine Manager (VMM) 2008 R2
D. Microsoft System Center Configuration Manager (SCCM) 2007 with SP3
[单项选择] Given:   11. String test = "This is a test";   12. String[] tokens = test.split("/s");   13. System.out.println(tokens.length);   What is the result?()
A.  An exception is thrown at runtime.
B.  1
C.  4
D.  Compilation fails.
E.  0
[单项选择] public class test (      private static int j = 0;  private static boolean methodB(int k) (  j += k;  return true;  )  public static void methodA(int  i)(  boolean b:     b = i < 10 | methodB (4);  b = i < 10 || methodB (8);  )  public static void main (String args[])(   methodA (0);  system.out.printIn(j);  )  )   What is the result?()  
A.  The program prints “0”
B.  The program prints “4”
C.  The program prints “8”
D.  The program prints “12”
E.  The code does not complete.

我来回答:

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

订单号:

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