• 2022-06-01
    已知string1, string2, string3,string4 = '', 'one', 'two','three',则string1 or string2 or string3 or string4的结果是
  • one

    内容

    • 0

      声明一个有3个元素的String类型的数组,不正确的是 A: String[] str = new String[3]; B: String str[] = new String[3]; C: String [] str = new String[3]; D: String[3] str = new String();

    • 1

      Which of the following sentence is right in G major ? A: An open inner string counts as 2, the outer string counts as 5 B: An open inner string counts as 5, the outer string counts as 2 C: An open inner string counts as 2, the outer string counts as 6 D: An open inner string counts as 6, the outer string counts as 3

    • 2

      下面的哪些程序片断可能导致错误?( ) A: String s=”Hello”; String t=,,World"; String k=s+t; B: String s=,,Hello";String t;t=s[3]+"one"; C: String s="Hello,,;String standard = s.tollpperCase(); D: String s="Hello World”;String t=s-”World”;

    • 3

      下面的哪些程序片断可能导致错误() A: String s = "Gone with the wind";  String t = " good ";  String k = s + t; B: String s = "Gone with the wind";  String t;  t = s[3] + "one"; C: String s = "Gone with the wind";  String standard = s.toUpperCase(); D: String s = "home directory"; String t = s - "directory"

    • 4

      Java中,以下代码会报错会报错的两项是() A: String s = "Gone with the wind"; String t = " good "; String k = s + t; B: String s = "Gone with the wind"; String t; t = s[3] + "one"; C: String s = "Gone with the wind"; String standard = s.toUpperCase(); D: String s = "home directory"; String t = s - "directory";