下列语句正确的是A.If A≠B Then Print "A不等于B"B.If A<>B Then Printf "A不等于B"C.If A
下列语句正确的是
A.If A≠B Then Print "A不等于B"
B.If A<>B Then Printf "A不等于B"
C.If A<>B Then Print "A不等于B"
D.If A≠B Print "A不等于B"
下列语句正确的是
A.If A≠B Then Print "A不等于B"
B.If A<>B Then Printf "A不等于B"
C.If A<>B Then Print "A不等于B"
D.If A≠B Print "A不等于B"
第1题
下列语句正确的是()。
A.If A≠B Then Print"A不等于B"
B.If A<>B Then Printf"A不等于B"
C.If A<>B Then Print"A不等于B"
D.If A<>B Print"A不等于B"
第2题
下列关于条件语句IF-ENDIF的说话不正确的是 ______。
A.IF和ENDIF语句必须成对出现
B.条件语句可以嵌套,但不能交叉
C.对IF与ENDIF之间的语句顺序执行
D.IF和ENDIF语句必须有ELSE子句
第3题
下列条件语句中,功能与其他语句不同的是()。
A.if(a) printf("%d\n",x); else printf("%d\n",y);
B.if(a==O) 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);
第4题
以下叙述中正确的是
A.if语句只能嵌套一层
B.if子句和else子句中可以是任意的合法的c语句
C.不能在else子句中再嵌套if语句
D.改变if-else语句的缩进格式,会改变程序的执行流程
第5题
与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;
第6题
A.if(x>y);
B.if(x=y)&&(x!=0)x+=y;
C.if(x!=y)scanf("%d",&x); else scanf("%d",&y);
D.if(x<y){x++;y++;}
第8题
设变量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+ +;
第9题
解释下列每一个陈述正确的原因。讨论货币与财政政策在每一种特例下的影响。
a.如果投资并不取决于利率,IS曲线是垂直的。
b.如果货币需求并不取决于利率,LM曲线是垂直的。
c.如果货币需求并不取决于收入,LM曲线是水平的。
d.如果货币需求对利率极其敏感,LM曲线是水平的。
Explain why each of the following statements is true. Discuss the impact of monetary and fiscal policy in each of these special cases.
a.If investment does not depend on the interest rate, the IS curve is vertical.
b.If money demand does not depend on the interest rate, the LM curve is vertical.
c.If money demand does not depend on income, the LM curve is horizontal.
d.If money demand is extremely sensitive to the interest rate, the LM curve is horizontal.
第10题
有一函数:以下程序段中不能根据x值正确计算出y值的是
A.if(x>0)y=1; else if(x= =0)y=0; else y=-1;
B.y=0; if(x>0)y=1; else if(x<0)y=-1;
C.y = 0; if (x> = 0) if (x>0) y = 1; else y = -1;
D.if (x > = 0) if (x>0)y = 1; else y = 0; else y = -1;