网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
下面的哪些程序片断可能导致错误()
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
参考答案
参考解析
解析:
暂无解析
更多 “多选题下面的哪些程序片断可能导致错误()AString s = Gone with the wind; String t = good ; String k = s + t;BString s = Gone with the wind; String t; t = s[3] + one;CString s = Gone with the wind; String standard = s.toUpperCase();DString s = home directory; String t = s - directory” 相关考题
考题
下面的哪些程序片段可能导致错误()。
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”;
考题
下面的哪些程序段可能导致错误? ( ) Ⅰ: 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.Ⅲ、Ⅳ
考题
程序片断如下:int i = 4;int a[] = new int[5];while(i=0){a[i] = i;}for(int j=0; j=a.length; j++){System.out.println(a[j]);}请问当该程序片断被运行时,是否会出现错误?如果没有,输出结果是什么?如果有错误,请指出错误并改正。
考题
下面的哪些程序片断可能导致错误() 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"
考题
下面的哪些程序片段可能导致错误()。 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”;
考题
多选题下面的哪些程序片段可能导致错误()。AString s = “Gone with the wind”; String t = “ good”; String k = s + t;BString s = “Gone with the wind”; String t; t = s[3] + “one”;CString s = “Gone with the wind”; String standard = s.toUpperCase();DString s = “home directory”; String t = s – “directory”;
考题
多选题对输入设备错误,可能有以下哪些原因导致()。A物理连接失败B驱动程序错误CI/O及IRQ资源冲突D驱动程序或应用程序冲突
热门标签
最新试卷