多选题在Java语言中,下列语句能通过编译的是()。AString s = john + was + here;BString s = john + 3;Cint a = 3 + 5;Dint a = 5 + 5.5;
多选题
在Java语言中,下列语句能通过编译的是()。
A
String s = john + was + here;
B
String s = john + 3;
C
int a = 3 + 5;
D
int a = 5 + 5.5;
参考解析
解析:
暂无解析
相关考题:
根据下列定义,能打印出字母P的语句是( )。struct stu{char name[10];int age;};struct stu s[10]={"John",11,"Pau1",12,"Mary",11,"adam",12};A.primf("%c",s[3].name};B.primf("%c",s[3].name[1]);C.printf("%c",s[2].name[1]);D.printf("%c",s[1].name[0]);
根据下列的定义,能打印出字母P的语句是( )struct stu {char name[10];int age;};stmct stu s[10]={"John",11,"Paul",12,"Mary",11,"adam",12}:A.printf("%c",s[3].name);B.printf("%c",s[3].name[1]);C.printf("%c",s[2].name[11]);D.printf("%c",s[1].name[0]);
下列语句错误的是( )。A.char*p="John";p[2]='a';B.char name[5]="John";name[2]='a'C.char name[5]="John",*p=name;p[2]='a';D.char name[5]="John",*p=name[2];*p='a';
根据下列的定义,能打印出字母P的语句是( )。 struct stu {char name[10]; int age; }; struct sm s[10]={"John",11, "Pau1",12, "Mary",11, "adam",12 };A.printf("%c",s[3].name);B.printf("%c",s[3].name[1]);C.printf("%c",s[2].name[1]);D.printf("%c",s[1].name[0]);
在Java语言中,下列语句能通过编译的是()。 A、String s = "john" + " was " + " here";B、String s = "john" + 3;C、int a = 3 + 5;D、int a = 5 + 5.5;
在java中,下列()语句不能通过编译。A、Strings="john"+"was"+"here";B、Strings="john"+3;C、floatf=5+5.5;D、inta=3+5;
下列语句错误的是()。A、char*p=“John”;p[2]=‘a’;B、charname[5]=“John”;name[2]=’a’;C、charname[5]=“John”,*p=name;p[2]=‘a’;D、charname[5]=“John”,*p=name[1];p[2]=‘a’;
多选题下面的哪些程序片段可能导致错误()。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”;
多选题Which of the following fragments might cause errors?()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;
多选题下面哪段语法执行正确()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;
单选题下列语句错误的是()。Achar*p=“John”;p[2]=‘a’;Bcharname[5]=“John”;name[2]=’a’;Ccharname[5]=“John”,*p=name;p[2]=‘a’;Dcharname[5]=“John”,*p=name[1];p[2]=‘a’;
单选题在C#中,下列哪条语句能创建一个具有3个初始值为""的元素的字符串数组?()Astring StrList[3]();Bstring[3] StrList={,,};Cstring[] StrList={,,};Dstring[] StrList=new string[3];
单选题以下能正确定义数组并正确赋初值的语句是()Aint N=5,b[N][N];Bint a[1][2]={{1},{3}};Cint c[2][]={{1,2},{3,4}};Dint d[3][2]={{1,2},{34}};
单选题下列的数组定义语句,不正确的是()。Aint a[]=new int[5]{1,2,3,4,5}Bint[,]a=new inta[3][4]Cint[][]a=new int[3][];Dint[]a={1,2,3,4};
多选题在Java语言中,下列语句能通过编译的是()。AString s = john + was + here;BString s = john + 3;Cint a = 3 + 5;Dint a = 5 + 5.5;
单选题下面哪个是对字符串String的正确定义()。AString s1=null;BString s2=’null’;CString s3=(String)‘abc’;DString s4=(String)‘/uface’;
多选题下面哪个语句是正确的()Ashort s=256;BString s=‘Helloworld’;Cint x=012;Dchar c=“a”;