In the United States, the passport is valid for 10 years for people under 18.A.YB.NC.NG
In the United States, the passport is valid for 10 years for people under 18.
A.Y
B.N
C.NG
In the United States, the passport is valid for 10 years for people under 18.
A.Y
B.N
C.NG
第1题
以下程序的输出结果是______。 main() { int i,x[3][3]={9,8,7,6,5,4,3,2,1},*p=&x[1][1]; for(i=0;i<4;i+=2) printf("%d ",p[i]); }
A.5 2
B.5 1
C.5 3
D.9 7
第2题
以下程序的输出结果是_______。 main() { int i,x[3][3]={9,8,7,6,5,4,3,2,1},*p=&x[1][1]; for(i=0;i<4;i+=2)printf("%d",p[i]); }
A.5 2
B.5 1
C.5 3
D.9 7
第3题
#include
int fun()
{static int x=l:
X*=2:
return X:
}
main()
{int i,s=l:
for(i=l;i<=3,i++) s*=fun();
printf(“%d\n”,s);
}
程序运行后的输出结果是
A.0
B.10
C.30
D.64
第4题
以下程序的输出结果是 int x=3; main() { int i; for(i=1;i<x;i++)incre(); } incre() { static int x=1; x*=x+1; printf(“%d”,x); }
A.3 3
B.2 2
C.2 6
D.2 5
第5题
以下程序的输出结果是______。 main() { int i, x[3][3]={9,8,7,6,5,4,3,2,1},*p=&x[1][1]; for(i=0;i<4;i+=2)printf("%d",p[i]); }
A.52
B.5 1
C.5 3
D.97
第6题
A.3 3
B.2 2
C.2 6
D.2 5
第7题
以下程序的输出结果是main() { int x=l,a=2,b=3; switch(x) { case 0:b++; case 1:a++;break; case 2:a++;b++; } printf("a=%d,b=%d\n",a,b); }
第8题
有以下程序: main { int x,i; for(i=l;i<=50;i++) { x=i: if(x%2=0) if(x%3=0) if(X%7=0) printf(”%d,i)”; } } 输出结果是()。
A.28
B.27
C.42
D.4l
第9题
有以下程序:
main
{ int x,i;
for(i=l;i<=50;i++)
{ x=i:
if(x%2=0)
if(x%3=0)
if(X%7=0)
printf(”%d,i)”;
}
}
输出结果是()。
A.28
B.27
C.42
D.4l
第10题
以下程序的输出的结果是()。#include <iostream.h>int x=3;void main(){ void incre(); int i; for (i=1;i<x;i++) incre();}Void incre(){ static int x=1; x*=x+1; cout<<x<<"";}
A.3 3
B.2 2
C.2 6
D.2 5
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!