首页
文化综合T版
试题篮(
)
全景学练考
考点导航
[ 所有信息 ][ 单选题 ] 列表
单选题
多选题
判断题
填空题
解答题
解析题
有以下程序段:
FILE *fp;
if((fp=fopen("test.txt","w"))==NULL)
{
printf("不能打开文件!");
exit(0);
}
else
printf("成功打开文件!");
若文件test.txt已存在,则以下叙述正确的是( )。
* .*****,******.**************(此内容仅VIP会员可见)
* .*****,*********(此内容仅VIP会员可见)
* .*******.*********,********(此内容仅VIP会员可见)
* .*******.******************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
设文件指针fp已定义,执行语句fp=fopen("file","w");后,以下针对 文本文件file操作叙述的选项中正确的是( )。
* .*************(此内容仅VIP会员可见)
* .******(此内容仅VIP会员可见)
* .***********(此内容仅VIP会员可见)
* .*******(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下叙述正确的是( )。
* .**********************、******** ***********(此内容仅VIP会员可见)
* .*************: *****(***);(此内容仅VIP会员可见)
* .*****************,**********(此内容仅VIP会员可见)
* .**************************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下选项中叙述正确的是( )。
* .************(此内容仅VIP会员可见)
* .*************(此内容仅VIP会员可见)
* .*********************(此内容仅VIP会员可见)
* .************************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下叙述正确的是( )。
* .************(此内容仅VIP会员可见)
* .********,*************(此内容仅VIP会员可见)
* .******************(此内容仅VIP会员可见)
* .**************************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
下面选项中关于“文件指针”概念的叙述正确的是( )。
* .************,***********(此内容仅VIP会员可见)
* .********************(此内容仅VIP会员可见)
* .******************(此内容仅VIP会员可见)
* .***************,****************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下叙述中正确的是( )。
* .************,**********(此内容仅VIP会员可见)
* .******************,********* ******(此内容仅VIP会员可见)
* .*****************,********** ***,*********(此内容仅VIP会员可见)
* .******(*)******,******,***** *****(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
下列关于C语言文件的叙述中,正确的是 ( )。
* .**************,*********(此内容仅VIP会员可见)
* .*********,**************(此内容仅VIP会员可见)
* .*********,**************(此内容仅VIP会员可见)
* .*********,**********(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
int f(int x);
main()
{
int n= 1,m;
m=f(f(f(n)));
printf("%d\n",m);
}
int f(int x)
{
return x*2;
}
程序运行后的输出结果是( )。
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
int fun (int x,int y)
{
if(x!=y) return ((x+y)/2);
else return (x);
}
main()
{
int a=4,b=5,c=6;
printf("%d\n",fun(2*a,fun(b,c)));
}
程序运行后的输出结果是( )。
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
int fun(int x,int y)
{
if(x==y)return(x);
else return((x+y)/2);
}
main()
{
int a=4,b=5,c=6;
printf("%d\n",fun(2*a,fun(b,c)));
}
程序运行后的输出结果是( )。
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .*(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
void fun(int a,int b)
{
int t;
t=a;
a=b;
b=t;
}
main()
{
int c[10]= {1,2,3,4,5,6,7,8,9,0},i;
for(i=0;i<10;i+=2)fun(c[i],c[i+1]);
for(i=0;i<10;i++)printf("%d,",c[i]);
printf("\n");
}
程序运行的结果是( )。
* .*,*,*,*,*,*,*,*,*,*,(此内容仅VIP会员可见)
* .*,*,*,*,*,*,*,*,*,*,(此内容仅VIP会员可见)
* .*,*,*,*,*,*,*,*,*,*,(此内容仅VIP会员可见)
* .*,*,*,*,*,*,*,*,*,*,(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
void fun(int p)
{
int d=2;
p=d++;
printf("%d",p);
}
main()
{
int a= 1;
fun(a);
printf("%d\n",a);
}
程序运行后的输出结果是( )。
* .**(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
FILE *f;
f=fopen("filea.txt","w");
fprintf(f,"abc");
fclose(f);
}
若文本文件filea.txt中原有内容为: hello,则运行以上程序后,文件 filea.txt中的内容为( )。
* .********(此内容仅VIP会员可见)
* .*****(此内容仅VIP会员可见)
* .***(此内容仅VIP会员可见)
* .********(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下关于C语言函数参数传递方式的叙述正确的是( )。
* .**************(此内容仅VIP会员可见)
* .****************(此内容仅VIP会员可见)
* .**************(此内容仅VIP会员可见)
* .******,***************,****** *********,********(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序段:
FILE *fp;
if((fp=fopen("test.txt","w")) == NULL)
{
printf("不能打开文件! ");
exit(0);
}
else
printf("成功打开文件!");
若指定文件test.txt不存在,且无其他异常,则以下叙述错误的是 ( )。
* .**“ ******!(此内容仅VIP会员可见)
* .**“******!(此内容仅VIP会员可见)
* .*************(此内容仅VIP会员可见)
* .*************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
int findmax(int,int,int),m;
…
m=findmax(a,b,c);
…
}
int findmax(int x,int y,int z)
{
…
}
则以下叙述正确的是( )。
* .********************(此内容仅VIP会员可见)
* .********************(此内容仅VIP会员可见)
* .**********************(此内容仅VIP会员可见)
* .********、***************(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
读取二进制文件的函数调用形式为“fread(buffer,size,count,fp);” ,其 中buffer代表的是
* .*********,***********(此内容仅VIP会员可见)
* .******,************(此内容仅VIP会员可见)
* .******,********(此内容仅VIP会员可见)
* .*********(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
main()
{
FILE *fp;
int k,n,a[6]= {1,2,3,4,5,6};
fp=fopen("d2.dat","w");
fprintf(fp,"%d%d%d\n",a[0],a[1],a[2]);
fprintf(fp,"%d%d%d\n",a[3],a[4],a[5]);
fclose(fp);
fp=fopen("d2.dat","r");
fscanf(fp,"%d%d",&k,&n);
printf("%d%d\n",k,n);
fclose(fp);
}
程序运行后的输出结果是( )。
* .******(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
* .****(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
FILE *fp;
int k,n,i,a[6]= {1,2,3,4,5,6};
fp=fopen("d2.dat","w");
for(i=0;i<6;i++) fprintf(fp,"%d\n",a[i]);
fclose(fp);
fp=fopen("d2.dat","r");
for(i=0;i<3;i++) fscanf(fp,"%d%d",&k,&n);
fclose(fp);
printf("%d,%d\n",k,n);
}
程序运行后的输出结果是( )。
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .***,***(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
共18275记录
«上一页
1
...
173
174
175
176
177
178
179
180
...
914
下一页»
微信刷题
联系电话
手机
181-0729-8398
邮箱
254634089@qq.com
返回顶部