题库 题库

【单选题】

以下关于C 语言数据类型使用的叙述中错误的是:________。(C-20100316)
  • A.若要准确无误的表示自然数,应使用整数类型。

  • B.若要保存带有多位小数的数据,应使用双精度类型。

  • C.若要处理如"人员信息"等含有不同类型的相关数据,应自定义结构体类型。

  • D.若只处理"真"和"假"两种逻辑值,应使用逻辑类型。

参考答案

查看答案

相关试题

单选题 以下关于return 语句的叙述中正确的是________。(C-20100324) 查看答案
单选题 软件(程序)调试的任务是________。(C-20100304) 查看答案
单选题 有以下程序
#include <studio.h>
#include <string.h>
struct A
{int a; char b[10];double c;};
void f(struct A t);
main()
{struct A a={1001,"ZhangDa",1098.0};
f(a); pringt("%d,%s,%6.1f\n",a.a,a.b,a.c);
}
void f(struct A t)
{t.a=1002;strcpy(t.b,"ChangRong");t.c=1202.0;}
程序运行后的输出结果是________。(C-20100337)
查看答案
单选题 以下程序
#include<stdio.h>
main( )
{ FILE *fp;char str[10];
fp=fopen("myfile.dat","w");
fputs("abc",fp); fclose(fp);
fp=fopen("myfile.dat","a+");
rewind(fp,"gd",28);
rewind(fp);
fscanf(fp,"gs",str); puts(str);
fclose(fp);
}
程序运行后的输出结果是________。(C-20100340)
查看答案
单选题 以下C 语言用户标示符中,不合法的是________。(C-20100313) 查看答案
单选题 若有定义int(*pt)[3];,则下列说法正确的是________。(C-20100327) 查看答案
单选题 下列语句中,正确的是________。(C-20100323) 查看答案
单选题 数据流程图(DFD)是________。(C-20100305) 查看答案
单选题 有以下程序
#includes <stdio.h>
main()
{ int a=1,b=2;
for(;a<8;a++) {b+=a; a+=2;}
printf ("%d,%d\n",a,b);
}
程序运行后的输出结果是________。(C-20100321)
查看答案
单选题 有以下程序
#include<studio.h>
int f(int t [ ],int n);
main()
{int a[4]={1,2,3,4},s;
s=f{a,4}; printf("%d\n",s);
}
int f(int t[], int n)
{ if (n>0) return t[n-1]+f(t,n-1);
else return 0;
}
程序运行后的输出结果是________。(C-20100333)
查看答案
单选题 算法的时间复杂度是指________。(C-20100302) 查看答案
单选题 有以下程序
#include<stdio.h>
#define N 8
void fun(int *x,int i)
{*x=*(x+i);}
main()
{ int a[N]={1,2,3,4,5,6,7,8},i;
fun(a,2);
for(i=0; i<N/2); i++)
{ printf("%d",a[i]);}
printf("\n");
}
程序运行后的输出结果是________。(C-20100332)
查看答案
单选题 下列叙述中,正确的是________。(C-20100301) 查看答案
单选题 有两个关系R和T如下:
  
则由关系R得到关系T的操作是________。(C-20100310)
查看答案
单选题
#include <stdio.h>
main()
{
char a,b,c,d;
scanf("%c%c",&a,&b);
c=getchar(); d=getchar();
printf("%c%c%c%c\n",a,b,c,d);
}
当执行程序时,按下列方式输入数据(从第一列开始,<CR>代表回车,注意:回车是一个字符)
12<CR>
34<CR>
则输出结果是:________。(C-20100315)
查看答案
单选题 数据库设计中,用E-R图来描述信息结构但不涉及信息在计算机中的表示,它属于数据库设计的________。(C-20100309) 查看答案
单选题 数据库管理系统中负责数据模式定义的语言是________。(C-20100307) 查看答案
单选题 以下关于C 语言的叙述中正确的是________。(C-20100312) 查看答案
单选题 有以下程序
#include<studio.h>
int fun()
{static int x=1;
x*=2; return x;
}
main()
{int I,s=1;
for (i=1;i<=2;i++) s=fun();
printf("%d\n",s);
}
程序运行后的输出结果是________。(C-20100334)
查看答案
单选题 有以下程序
#include<stdio.h>
main()
{ int b[3] [3]={0,1,2,0,1,2,0,1,2},i,j,t=1;
for(i=0; i<3; i++)
For(j=i;j<=i;j++) t+=b[i][b[j][i]];
Printf("%d\n",t);
}
程序运行后的输出结果是________。(C-20100330)
查看答案