网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列语句能给数组赋值而不使用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"} ;