首页
文化综合T版
试题篮(
)
全景学练考
考点导航
[ 所有信息 ][ 单选题 ] 列表
单选题
多选题
判断题
填空题
解答题
解析题
设有以下程序段:
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会员可见)
收藏
纠错
加入试题篮
设变量均已正确定义并且赋值,以下与其他三组输出结构不同的 一组语句是( )。
* .*++;******("%*\*" ,*);(此内容仅VIP会员可见)
* .*=++*;******("%*\*",*);(此内容仅VIP会员可见)
* .++*;******("%*\*",*);(此内容仅VIP会员可见)
* .*=*++;******("%*\*",*);(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
设有定义:
int k=0;
以下选项的四个表达式中与其他三个表达式的值不相同的是 ( )。
* .++*(此内容仅VIP会员可见)
* .*+= *(此内容仅VIP会员可见)
* .*++(此内容仅VIP会员可见)
* .*+*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
#include <math.h>
main()
{
int a = 3;
printf("%d\n",(a+=a-=a*a));
}
程序运行后的输出结果是( )。
* .- **(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
共19805记录
«上一页
1
...
298
299
300
301
302
303
304
305
...
991
下一页»
微信刷题
联系电话
手机
181-0729-8398
邮箱
254634089@qq.com
返回顶部