首页计算机考试Oracle认证
(单选题)

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"?()

AString regex = "";

BString regex = " ";

CString regex = ".*";

DString regex = "//s";

EString regex = "//.//s*";

正确答案

来源:www.examk.com

答案解析

相似试题

  • (单选题)

    Given: 11.String test = "This is a test"; 12.String[] tokens = test.split("/s"); 13.System.out.println(tokens.length); What is the result?()

    答案解析

  • (单选题)

    Given: 11.String test = "a1b2c3"; 12.String[] tokens = test.split("//d"); 13.for(String s: tokens) System.out.print(s + " "); What is the result?()

    答案解析

  • (单选题)

    Given that c is a reference to a valid java.io.Console object, and: 11.String pw = c.readPassword("%s", "pw: "); 12.System.out.println("got " + pw); 13.String name = c.readLine("%s", "name: "); 14.System.out.println(" got ", name); If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()

    答案解析

  • (单选题)

    Given: What is the result?()

    答案解析

  • (单选题)

    Given: Which statement is true?()

    答案解析

  • (单选题)

    Given: What is the result?()

    答案解析

  • (单选题)

    Given: What is the result?()

    答案解析

  • (多选题)

    Given: Which three are true?()

    答案解析

  • (单选题)

    Given: What is the result?()

    答案解析

快考试在线搜题