题目
A.Strings=“Gonewiththewind”;Stringt=“good”;Stringk=s+t;
B.Strings=“Gonewiththewind”;Stringt;t=s[3]+“one”;
C.Strings=“Gonewiththewind”;Stringstandard=s.toUpperCase();
D.Strings=“homedirectory”;Stringt=s–“directory”;
第1题
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!” ;
第2题
下面的哪些程序段可能导致错误? () Ⅰ: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.Ⅲ、Ⅳ
第3题
下面的哪些程序段可能导致错误? () Ⅰ: 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.Ⅲ、Ⅳ
第4题
A.Strings=“Gonewiththewind”;Stringt=“good“;Stringk=s+t;
B.Strings=“Gonewiththewind”;Stringt;t=s[3]+“one”;
C.Strings=“Gonewiththewind”;Stringstandard=s.toUpperCase();
D.Strings=“homedirectory”;Stringt=s–“directory”;
第5题
A.Strings="Gonewiththewind";Stringt="good";Stringk=s+t;
B.Strings="Gonewiththewind";Stringt;t=s[3]+"one";
C.Strings="Gonewiththewind";Stringstandard=s.toUpperCase();
D.Strings="homedirectory";Stringt=s-"directory"
第6题
A.a
B.b
C.ab
D.编译错误
第7题
若有下面的程序片段: int[12]={0},*p[3],**pp,i; for(i=0;i<3;i) p[i]=&a[i*4]; pp=p; 则对数组元素的错误引用是
第8题
若有下面的程序片段:
int[12]={0},*p[3],**pp,i;
for(i=0;i<3;i)
p[i]=&a[i*4];
pp=p;
则对数组元素的错误引用是
A.pp[0][1]
B.a[10]
C.p[3][1]
D.*(*(p+2)+2)
第9题
若有下面的程序片段: int[12]={0},*p[3],**pp,i; for(i=0;i<3;i) p[i]=&a[i*4]; pp=p 则对数组元素的错误引用是
A.pp[0][1]
B.a[10]
C.p[3][1]
D.*(*(p+2)+2)
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!