下列各VB赋值语句中,正确的是()
A.x-y=1
B.Text1.Text=x+y
C.If 5>x>1 Then y=x-1
D.D
B、Text1.Text=x+y
A.x-y=1
B.Text1.Text=x+y
C.If 5>x>1 Then y=x-1
D.D
B、Text1.Text=x+y
第6题
设变量x和y均已正确定义并赋值。下列if语句中,在编译时将产生错误信息的是()。
A.if(x+ +);
B.if(x>y&&y!=0);
C.if(x>0)x--
D.if(y<0){;} else y+ +; else x+ +;
第7题
A.byte b1 = 10, b2 = 20;byte b=b1+b2;
B. byte b1 = 10, b2 = 20;byte b=~b1;
C. byte b1 = 10, b2 = 20;byte b=b1>>1;
D. byte b1 = 10;byte b=++b1;
第8题
A、字符型数组中能存放字符串。
B、可以对字符型数组进行整体输入、输出。
C、可以对整型数组进行整体输入、输出。
D、不能在赋值语句中通过赋值运算符“=”对字符型数组进行整体赋值。
第9题
A.int a = 8888888888;
B. char b = 1000+300;
C. byte c = 100+30;
D. int d = 'a'+'b'+'c';
第11题
A.har a1[10]={'C',' ','p','r','o','g','r','a','m'}
B.har a2[10]; strcpy(a2,"C program")
C.har a3[10]; a3="C program
D.har a4[10]={"C program"}