constc:=10的说明语句是合法的。
第1题:
关于下面语句的说法正确的是 String[]s=new String[10][];
A.该语句不合法
B.该语句定义了一个二维数组,它包括10行10列
C.s是一个包含10个数组的数组
D.s中的每一个元素都被设置成""
第2题:
有如下类的定义。横线处的语句是( )。 class MyClass { public: MyClass(int a=0,int b=0) { X=a; Y=b; } void Change()const { X-=10; Y+=10; } private: ______intX, Y;
A.static
B.const
C.mutable
D.不需要填入内容
第3题:
经过下面的语句定义后:int i,a[10],*p;下列语句中,合法的是______。
A.p=100;
B.p=a[5];
C.p=a[2]+2;
D.p=a+2;
第4题:
有如下类的定义,下划线处的语句是( )。 class MyClass { ______int x,y; public; MyClass(int a=0,int b=0) { x=a; y=b; } static void change() { y-=10; y-=10; }; }
A.static
B.const
C.mutable
D.不需要填入内容
第5题:
下面正确的说明语句是()。
第6题:
有说明语句int a[10];void fun(int*,int n);调用函数的正确语句是()
第7题:
以下合法的Visual Basic变量的名称是()
第8题:
17
15
14
说明语句不合法
第9题:
两行定义语句都不合法
两行定义语句都合法
第1行语句不合法
第2行语句不合法
第10题:
100
110
120
121
第11题:
delete []p;
delete p[]
delete int[]p
delete p int[10]
第12题:
变量s中包含1个字符
变量s中包含2个字符
变量s中包含3个字符
说明语句不合法
第13题:
以下合法的Visual Basic标识符是
A.For Loop
B.Const
C.9abc
D.a#x
第14题:
有如下类的定义。那么空格处的语句是( )。 class MyClass { ____________int x,y; public: MyClass(int x1=0,int y1=0) { x=x1; y=y1; } static void change() { x+=10; y+=10; } };
A.static
B.const
C.private
D.不需要填入内容
第15题:
有如下类的定义。空格处的语句是 class MyClass { ______int x,y; public: MyClass(int a=0,int b=0) { x=a; y=b; } staticvoidchange() { x-=10; y-=10; } };
A.static
B.const
C.private
D.不需要填入内容
第16题:
空语句是合法的C语句。
第17题:
设有说明语句:chars=“AA”;,下面说法正确的是()
第18题:
经过下面的语句后 inti,a[10],*p; 定义后,下列语句中合法的是()。
第19题:
2个字符
1个字符
3个字符
说明语句不合法
第20题:
类型说明语句、IMPLICIT 说明语句、隐含约定
隐含约定、IMPLICIT 说明语句、类型说明语句
IMPLICIT 说明语句、类型说明语句、隐含约定
隐含约定、类型说明语句、IMPLICIT 说明语句
第21题:
对
错
第22题:
float5_five=3.4
int_xyz=29
doublea1=6.2e4
shortdo=3
第23题:
int a=p;
int a=*p;
delete int[]p
delete p int[10]