网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下述语句中,_____中的if语句语法是错误的。()A.if(x>y);B.if(x==y)x+=y;C.if(x!=y)seanf("%d",&am
下述语句中,_____中的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++;}
参考答案
更多 “ 下述语句中,_____中的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++;} ” 相关考题
考题
设变量x和y均已正确定义并赋值,以下if语句中,在编译时将产生错误信息的是( )。A)if(x++);B.if(xyy!=0);C.if(xy) x- -D.if(y0) {;}else y++; else x++;
考题
下列条件语句中,功能与其他语句不同的是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);
考题
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.
考题
设变量x和y均已正确定义并赋值。以下if语句中,在编译时将产生错误信息的是A.if(x++);B.if(x>yy!=0);C.if(x>0)x- else y++;D.if(y<0){;} else x++;
考题
设变量x和y均已正确定义并赋值。下列if语句中,在编译时将产生错误信息的是( )。A.if(x++);B.if(x>yy!=0);C.if(x>0)x-- elsey++;D.if(y<0){;} else x++;
考题
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'.
考题
若x和y是程序中的两个整型变量,则下列if语句中正确的是( )。A.if(x==0)y=l;else y=2;B.if(x==0)theny=1 elsey=2C.if(x=0)y=l else y=2;D.ifx==0y=1 else y=2;
考题
设变量x和y均已正确定义并赋值。下列if语句中,在编译时将产生错误信息的是( )。A.if(x+ +);B.if(x>yy!=0);C.if(x>0)x--D.if(y<0){;} else y+ +; else x+ +;
考题
下列条件语句中,功能与其他语句不同的是A.if(a) printf("%d\n",x); else prinff("%d\n",y);B.if(a==0) printf("%d\n",y); else printf("%d\n",x);C.fi(a!=0) prinff("%d\n"x); else printf("%d\n",y);D.if(a==0) prinff("%d\n",x); else printf("%d\n",y);
考题
下列if语句非法的是( )A.if(a=B) x=1;B.if(!3.9)C.if('a'x==y) y++;D.if(x>y) scanf("%f",y) else scanf("%f",x);
考题
以下错误的if语句是:A.if(x>y) z=x;B.if(x==y) z=0;C.if(x!=y) printf("%d",x) else printf("%d",y);D.if(x
考题
设变量x和y均已正确定义并赋值,以下if语句中,在编译时将产生错误信息的是( )。A.if(x++);B.if(x>yy!=0);C.if(x>y)x--else y++;D.if(y<0) {;} else x++;
考题
下列语句正确的是A.If x≠y Then Print "x不等于y"B.If x<>y Then Print "x不等于y"C.If x><y Then Print "x不等于y"D.If x<>y Print "x不等于y"
考题
下面语句正确的是A.If xy Then y=x^3B.If xy Then y=x3C.If x
下面语句正确的是A.If x<3 * y And x>y Then y=x^3B.If x<3 * y And x>y Then y=x3C.If x<3 * y:x>y Then y=x^3D.If x<3 * y And x>y Then y=x* *3
考题
下列条件语句中,输出结果与其他语句不同的是( )。A.if(a)printf("%d n",x); else print[("%d\n",y)B.if(a=0)pritf("%d n",y); else print[("%d\n",x)C.if(a!一0)printf("%d n",x); else print[("%a\n",y)D.if(a=O)print[("%d n",x); else printf("%d\n",y)
考题
若有定义语句:double x,y,*px,*PY;执行了laX=&x;lay=&y;之后,正确的输入语句是( )。A.scanf(”%If%le”,px,lay);B.seanf(”%f%f¨&x,y);C.seanf(”%f%f",x,y);D.Scanf(”%If%If"·,x,y):
考题
若x和y是程序中的两个整型变量,则下列if语句中正确的是( )。A.if(x==O)y=1;elsey=2;B.if(x==0)theny=1elsey=2C.if(x==O)y=1elsey=2;D.ifx==0y=1elsey=2;
考题
与“y=(x0?1:x0?-1:0)”;的功能相同的if 语句是( )。A.if(x0)y=1; else if(x0)y=1; else y=0;B.if(x) if(x0)y=1; else if(x0)y=-l; else y=0;C.y=-l if(x) if(xO)y=1; else if(x=-0)y=0; else y=-l;D.y=0; if(x=0) if(x=0)y=1; else y=-l;
考题
与y=(x>0? 1:x0)y=1 else if(x
与y=(x>0? 1:x<0? -1:0);的功能相同的if语句是A.if(x>0)y=1 else if(x<0)y=-1; else y=O;B.if(x) if(x>0)y=1; else if(x<0)y=-1;C.y=-1; if(x) if(x>0)y=1; else if(x==0)y=0; else y=-1;D.y=0; if(x>=0) if(x>0)y=1; else y=-1;
考题
与y=(x>0?1:x0)y=1; else if(x
与y=(x>0?1:x<0?-1:0):的功能相同的if语句是( )A.if(x>0)y=1; else if(x<0)y=-1; else y=0; else y=0;B.if(x) if(x>0)y=1; else if(x<0)y=-1;C.y=-1; if(x) if(x>0)y=1; else if(x==0)y=0; else y=-1;D.y=0; if(x>=0) if(x>0)y=1; else y=-1:
考题
以下错误的if语句是( )。A.if(x>y)x++;B.if(x)x++;C.if(x!=y) cout<<x;y++;D.if(x<y) x++;cout<<x;else cout<<y;
考题
设变量X和y均已正确定义并赋值。以下if语句中,在编译时将产生错误信息的是( )。A.if(x++);SXB
设变量X和y均已正确定义并赋值。以下if语句中,在编译时将产生错误信息的是( )。A.if(x++);B. if(x>yC.if(x>y)x--else y++;D.if(y<0) {;} else x++;
考题
以下选项中,正确的if-else语句是( )A.if(x!=0) printf("%d",x) else printf("%d",-x);B.if(x!=0) { x=x+y;printf("%d",x);} else printf("%d",-x);C.if(x!=0) x=x+y;printf("%d",x); else printf("%d",-x);D.if(x!=0) { x=x+y;printf("%d",x)}; else printf("%d",-x);
考题
下列语句中,()在Pyhon中是非法的。A、x=y=z=1B、x=(y=z+1)C、x,y=y,xD、X+=y
热门标签
最新试卷