24. Albert can do ________things.
A. One
B. Two
C.Three
D. Four
第1题:
以下对枚举类型名的定义中正确的是( )
A.enum a={one,two,three};
B.enum a{one=9,two=-1,three=200};
C.enum a={"one","two","four"};
D.enum a{"nine","two","three"};
第2题:
以下对枚举类型名的定义中正确的是( )。
A.enum a={one,two,three};
B.enum a{one=9,two=-1.three=200};
C.enum a={"one","two","four"};
D.enum a{"nine","two","three"};
第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” } } ;
第4题:
下列语句能给数组赋值,而不使用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"};
第5题:
第6题:
【填空题】运行下列程序,输出结果是____。 #include <iostream> using namespace std; enum opt{ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN}op; int main(void) { cout<<ONE; cout<<TWO; cout<<SIX; return 0; }