下列语句能给数组赋值而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};
下列语句能给数组赋值而不使用for循环的是
A.myArray{[1]="One";[2]="Two";[3]="Three";}
B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};
C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};
D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};
相关考题:
以下对枚举类型名的定义中正确的是______。A.enum a={one,two,three};B.enum a{one=9,two=-1,three};C.enum a={"one","two","three"};D.enum a{"one","two","three"};
下列语句能给数组赋值,而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};C.String s[]=new String[] {"Zero","One","Two","Three","Four"};D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};
下列选项中,不能创建字典对象的语句是()。A.{'one':1, 'two':2, 'three':3}B.dict('one':1, 'two':2, 'three':3)C.dict([('one',1), ('two',2), ('three',3)])D.dict(zip(['one','two','three'], [1,2,3]))
下列给字符串二维数组进行赋值的语句中,错误的是()。A.String s[ ] [ ] = new String [ ] [ ] { { “One “ , “ Two “ }, { “ Three “ , “ Four “ } } ;B.String s[ ] [ ] = { { “ One “ , “Two “},{ “ Three “ , “ Four “ } } ;C.String s[ ] [ ] = new String [ ] [ ] { { “Zero”} , { “ One ” , “Two” , “ Three” , “ Four” } } ;D.String s[ 2] [2 ] = { { “ One ” , “Two”},{“ Three” , “ Four” } } ;
以下对枚举的定义,正确的是A.enum a={one.two,three}B.enum a{a1,a2,a3};C.enum a={'1','2','3'};D.enum a {"one","two","three"}
1、以下对枚举类型名的定义中正确的是()。A.enum a={one,two,three};B.enum a {one=9,two=-1,three};C.enum a={"one","two","three"};D.enum a {"one","two","three"};
4、下列选项中,不能创建字典对象的语句是()。A.{'one':1, 'two':2, 'three':3}B.dict('one':1, 'two':2, 'three':3)C.dict([('one',1), ('two',2), ('three',3)])D.dict(zip(['one','two','three'], [1,2,3]))
以下对枚举类型的定义,正确的是()。A.enum a={one,two,three};B.enum a{a1,a2,a3};C.enum a{'1', '2', '3'};D.enum a{ "one","two","three" };
以下对枚举类型名的定义中正确的语句是A.enum a={one,two,three};B.enum a {a1,a2,a3} ;C.enum a={'1','2','3'} ;D.enum a {"one","two","three"} ;