首页
文化综合T版
试题篮(
)
全景学练考
考点导航
[ 所有信息 ][ 单选题 ] 列表
单选题
多选题
判断题
填空题
解答题
解析题
表达式:(int)((double)9/2)-9%2的值是( )。
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下程序段中的变量已定义为int类型,则
sum=pAd=5;
pAd=sum++,++pAd,pAd++;
printf("%d\n",pAd);
程序段的输出结果是( )。
* .*(此内容仅VIP会员可见)
*.*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
若有定义语句:
int x= 12,y=8,z;
在其后执行语句:
z=0.9+x/y;
则z的值为( )。
* .*.*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*.*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
设有以下程序段:
int y;
y=rand()%30+1;
则变量y的取值范围是( )。
* .*≤*≤**(此内容仅VIP会员可见)
* .*<*≤**(此内容仅VIP会员可见)
* .*<*<**(此内容仅VIP会员可见)
* .*<*≤**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
main()
{
int i;
for(i= 1;i<=40;i++)
{
if(i++%5==0)
if(++i%8==0)printf("%d",i);
}
printf("\n");
}
执行后的输出结果是( )。
* .**(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有如下程序:
#include <stdio.h>
main()
{
int a =0,b=1;
if(++a==b++)
printf("T");
else
printf("F");
printf("a=%d,b=%d\n",a,b);
printf("\n");
}
程序运行后的输出结果是( )。
* .**=*,*=*(此内容仅VIP会员可见)
* .**= *,*=*(此内容仅VIP会员可见)
* .**= *,*=*(此内容仅VIP会员可见)
* .**=*,*=*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有如下程序:
#include <stdio.h>
main()
{
int a =0,b=1;
if(a++&&b++)
printf("T");
else
printf("F");
printf("a=%d,b=%d\n",a,b);
printf("\n");
}
程序运行后的输出结果是( )。
* .**= *,*=*(此内容仅VIP会员可见)
* .**=*,*=*(此内容仅VIP会员可见)
* .**= *,*=*(此内容仅VIP会员可见)
* .**=*,*=*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
表达式a+=a-=a=9的值是( )。
* .*(此内容仅VIP会员可见)
* .-*(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下叙述中正确的是( )。
* .*************,***************** **(此内容仅VIP会员可见)
* .*********************,************* *********(此内容仅VIP会员可见)
* .*******************,*********(此内容仅VIP会员可见)
* .***********,**********(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下能正确输出字符a 的语句是( )。
* .******("%*", "*");(此内容仅VIP会员可见)
* .******("%*", '*');(此内容仅VIP会员可见)
* .******("%*", "*");(此内容仅VIP会员可见)
* .******("%*", '*');(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下不能输出字符A的语句是( )。(注:字符A的ASCII码值为65,字符a 的ASCII码值为97。)
* .*******("%*\*",'*'-**);(此内容仅VIP会员可见)
* .******("%*\*",'*');(此内容仅VIP会员可见)
* .******("%*\*",**);(此内容仅VIP会员可见)
* .******("%*\*",'*'- *);(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
设有定义: double x=2.12;,以下不能完整输出变量x值的语句是 ( )。
* .******("*=%*.**\*",*);(此内容仅VIP会员可见)
* .******("*=%*\*",*);(此内容仅VIP会员可见)
* .******("*=%**\*",*);(此内容仅VIP会员可见)
* .******("*=%*.**\*",*);(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
int k= 10;
printf("%4d,%o,%x\n",k,k,k);
}
程序的运行结果是( )。 (u代表一个空格)
* .**,**,*(此内容仅VIP会员可见)
* .****,***,*(此内容仅VIP会员可见)
* .***,**,*(此内容仅VIP会员可见)
* .****,**,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include<stdio.h>
main()
{
int sum,pad,pAd;
sum=pad=5;
pAd=++sum,pAd++,++pad;
printf("%d\n",pad);
}
程序的输出结果是( )。
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
int a= 1,b=1;
while(a--)
b--;
printf("%d,%d\n", a,b);
}
程序的运行结果是( )。
* .- *,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .- *,- *(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
int a=7;
while(a--);
printf("%d\n", a);
}
程序运行后的输出结果是( )。
* .-*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include<stdio.h>
main()
{
int a= 1,b=0;
if(--a) b++;
else if(a==0) b+=2;
else b+=3;
printf("%d\n",b);
}
程序运行后的输出结果是( )。
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include<stdio.h>
main()
{
int a;
scanf("%d",&a);
if(a++<9)printf("%d\n",a);
else printf("%d\n",a--);
}
程序运行时键盘输入9<回车> ,则输出的结果是( )。
* .**(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
int i,j,k,a=5,b=6;
i=(a==b)?++a:--b;
j=a++;k=b;printf("%d,%d,%d\n",i,j,k);
}
程序的运行结果是( )。
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include<stdio.h>
main()
{
int x=010,y= 10;
printf("%d,%d\n",++x,y--);
}
程序运行后的输出结果是( )。
* .**,*(此内容仅VIP会员可见)
* .**,**(此内容仅VIP会员可见)
* .***,*(此内容仅VIP会员可见)
* .*,**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
共18275记录
«上一页
1
...
219
220
221
222
223
224
225
226
...
914
下一页»
微信刷题
联系电话
手机
181-0729-8398
邮箱
254634089@qq.com
返回顶部