下列收入中,不属于施工企业营业收入核算范围的是()。
A.劳动作业收入
B.设备租赁收入
C.合同变更收入
D.罚款净收入
第1题
有以下程序 #inelude<stdio.h> main() { float x,y; scan{("%f",&x); if(x<0.0)y=0.0; else if((x<5.0)&&(x!=2.0)) y=1.0/(x+2.0); else if(x<10.0)y=1.0/x; else y=10.0; printf("%f\n",y); } 若运行时从键盘上输入2.0<CR>(<CR>表示回车),则上面程序的输出结果是()
A.0
B.0.25
C.0.5
D.1
第2题
有如下程序 #include <stdio.h> int main(void) { float x=2.0,y; if(x<0.0) y="0.0;" else printf("%f\n",y); return 0; } 该程序的输出结果是()。> A、1.000000
B、0.250000
C、0.500000
D、0.000000
第3题
完善下面程序段,以使其完成以下数学函数的计算。
include<stdio.h>
include<math.h>
main()
{float x,y,f1,fun();
scanf("%f%f",&x,&y);
fl—X*x/fun(______);/*第一空*/
printf("A=%f\n",f1);
}
float fun(float f)
{float f2;
f2=f*f+sqrt(1十______/*第二空*/+______);/*第三空*/
return(f2);
}
第4题
有以下程序
#inelude(stdio.h>
int f(int n);
main()
{int a=3,s;
s=f(A);8=s+f(A);prinff(“%d\n”,s);
}
int f(int n)
{static ifit a=1:
n+=a++:
return n;
}
程序运行后的输出结果是
A.7
B.8
C.9
D.10
第5题
#include<math.h>
#include<stdio.h>
main()
{float x,y,z;
scanf("%f%f",&x,&y);
z=x/y;
while(1)
{if(fabs(z)>1.0){x=y;y=z;z=x/y;}
else break;}
printf("%f",y);}
程序运行时,从键盘输入3.6,2.4<回车>,则程序运行结果是:______
第6题
求下列分段函数的值,正确的程序有()。
A、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" else printf("y="%f\n",y);" return 0;> B、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
C、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" else if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
D、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); y=3-fabs(x); if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
第7题
A、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" else printf("y="%f\n",y);" return 0; }> B、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
C、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" else if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
D、#include <stdio.h> #include <math.h> int main() { float x,y; scanf("%f",&x); y=3-fabs(x); if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
第8题
有如下程序: #include <stdio.h> main() { float x=2.0,y; if(x<0.0) y=0.0; else if(x>10.0) y=1.0/x; else y=1.0; printf("%f/n",y); } 该程序的输出结果是()。
A.0
B.0.25
C.0.5
D.1
第9题
有以下程序: #include <stdio.h> main() { int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d%d%3.1f%3.1f\n",a,c,f,x); } 程序运行后的输出结果是()。
A.1 65 1 6.5
B.1 65 1.5 6.5
C.1 65 1.0 6.5
D.2 65 1.5 6.5
第10题
有如下程序: #include<stdio.h> main() { float x=2.0,y; if(x<0.0) y=0.0; else if(x<10.0)y=1.0/x; else y=1.0; printf("%f\n",y); } 该程序的输出结果是()。
A.0
B.0.25
C.0.5
D.1
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!