下述语句中,_____中的if语句语法是错误的。( )
A.if(x>y);
B.if(x==y)x+=y;
C.if(x!=y)seanf("%d",&x)else scanf("%d",&y);
D.if(x<y){x++;y++;}
第1题:
下列条件语句中,功能与其他语句不同的是
A.if(A) printf("%d\n",x); else printf("%d\n",y);
B.if(a==0) printf("%d\n",y); else printf("%d\n",x);
C.if(a!=0) printf("%d\n",x); else printf("%d\n",y);
D.if(a==0) printf("%d\n",x); else printf("%d\n",y);
第2题:
设变量x和y均已正确定义并赋值。以下if语句中,在编译时将产生错误信息的是
A.if(x++);
B.if(x>y&&y!=0);
C.if(x>0)x- else y++;
D.if(y<0){;} else x++;
第3题:
设变量x和y均已正确定义并赋值,以下if语句中,在编译时将产生错误信息的是( )。
A)if(x++);
B.if(x>y&&y!=0);
C.if(x>y) x- -
D.if(y<0) {;}
else y++; else x++;
第4题:
A.if(X>y){x++;y++;}
B.if(X>y)
C.if(X=y)&&(X!=0)X+=y
D.if(x)Z=Z/X
第5题:
In the following statements about functional dependency, which one is incorrect?
A.If X→Y and Y→Z, then X→Z.
B.If X→Y and, then X→Y'.
C.If X→Y and, then X'→Y.
D.If, then X→X'.
第6题:
In the following statements about functional dependency, which one is incorrect?
A.Ifthen X→X'.
B.If X→Y andthen X→Y'.
C.If X→Y andthen X'→Y.
D.If X→Y and Y→Z, then X→Z.
第7题:
设变量x和y均已正确定义并赋值。下列if语句中,在编译时将产生错误信息的是( )。
A.if(x++);
B.if(x>y&&y!=0);
C.if(x>0)x-- elsey++;
D.if(y<0){;} else x++;
第8题:
A、if(xy
B、if(x==y)x+=y;
C、if(x!=y)scanf(“%d“,
D、if(xy){x++;y++;}
第9题:
若x和y是程序中的两个整型变量,则下列if语句中正确的是( )。
A.if(x==0)y=l;else y=2;
B.if(x==0)theny=1 elsey=2
C.if(x=0)y=l else y=2;
D.ifx==0y=1 else y=2;
第10题:
设变量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+ +;