A.赞科夫
B.皮亚杰
C.布鲁纳
D.根舍因
第1题
下列的哪个程序段可能导致错误?
A.String s = "hello"; String t = "good"; String k = s + t;
B.String s = "hello"; String t; t = s[3] + "one";
C.String s = " hello "; String standard = s.toUpperCase();
D.String s = "hello"; String t = s + "good";
第2题
下列的哪个程序段可能导致错误? ()
A.String s="hello"; String t="good"; String k=s+t;
B.String s="hello"; String t; t=s[3]+"one";
C.String s="hello"; String standard=s.toUpperCase();
D.String s="hello"; String t=s+"good";
第3题
下列的()程序段可能导致错误。
A.String s="hello": Sting t="good"; String k=s+t;
B.Sting s="hello"; String t; t=s [3] + "one";
C.Sting s="hello"; String standard=s.toUpperCase();
D.String s="hello": Stringt s +"good";
第4题
下面的程序片断可能导致错误的是______。
A.String s="Gone with the wind";
Stringt="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";
第5题
下面的哪些程序段可能导致错误? () Ⅰ: String s = "Gone with the wind"; String t = "good "; String k = s + t; Ⅱ: String s = "Gone with the wind"; String t; t = s[3] + "one"; Ⅲ: String s = "Gone with the wind"; String standard = s.toUpperCase(); Ⅳ: String s = "home directory"; String t = s-"directory":
A.Ⅱ、Ⅲ
B.Ⅱ、Ⅳ
C.Ⅰ、Ⅳ
D.Ⅲ、Ⅳ
第6题
下面的哪些程序段可能导致错误? () Ⅰ:String s="Gone with the wind"; String t="good"; String k=s+t; Ⅱ:String s="Gone with the wind"; String t; t=s[3]+"one"; Ⅲ:String s="Gone with the wind"; String standard=s.toUpperCase(); Ⅳ:String s="home directory"; String t=s-"directory";
A.Ⅱ、Ⅲ
B.Ⅱ、Ⅳ
C.Ⅰ、Ⅳ
D.Ⅲ、Ⅳ
第7题
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” ;
D.String s = “Hello world!” ;
第8题
给出下列的程序段,则哪个选项返回true? () String s="hello"; String t="hello"; char c[]={'h','e','l','l','o'};
A.s.equals(t);
B.Lequals(c);
C.s==t;
D.t==c;
第9题
Which of the following fragments might cause errors?
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";
第10题
给出下列的代码则以下哪个选项返回true? String s = "hello" ; String s = "hello" ; char c[] = { 'h' ,'e','l','o'};
A.s.equals(t);
B.t.equals(c);
C.s = =t
D.t = = c;
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!