niusouti.com
更多“Given:11.Stringtest="Thisisatest";12.String[]tokens=test.split("\s");13.System.out.println(tokens.length);Whatistheresult?() ”相关问题
  • 第1题:

    在PowerPoint中,若想给“文本框”对象或“文本框占位符”设置动画效果,下列说法正确是()。

    A.执行quot格式quot菜单的quot幻灯片设计quot命令,右侧有一个相应的设置窗格

    B.执行quot幻灯片反映quot菜单的quot自定义动画quot命令,右侧有一个相应的设置窗格

    C.执行quot格式quot菜单的quot幻灯片版式quot命令,右侧有一个相应的设置窗格

    D.以上说法全错


    参考答案B

  • 第2题:

    Stringtest=Thisisatest”;12.String[]tokens=test.split(”\s”);13.System.out.println(tokens.length);Whatistheresult?()

    A.0

    B.1

    C.4

    D.Compilationfails.

    E.Anexceptionisthrownatruntime.


    参考答案:D

  • 第3题:

    Given:11.Stringtest="a1b2c3";12.String[]tokens=test.split("\\d");13.for(Strings:tokens)System.out.print(s+"");Whatistheresult?()

    A.abc

    B.123

    C.a1b2c3

    D.a1b2c3


    参考答案:A

  • 第4题:

    Stringtest=a1b2c3”;12.String[]tokens=test.split(”\\d”);13.for(Strings:tokens)System.out.print(s+);Whatistheresult?()

    A.abc

    B.123

    C.a1b2c3

    D.a1b2c3

    E.Compilationfails.

    F.Thecoderunswithnooutput.

    G.Anexceptionisthrownatruntime.


    参考答案:A

  • 第5题:

    Given:11.Stringtest="Thisisatest";12.String[]tokens=test.split("\s");13.System.out.println(tokens.length);Whatistheresult?()

    A.Anexceptionisthrownatruntime.

    B.1

    C.4

    D.Compilationfails.

    E.0


    参考答案:D