选择题 把实体一联系模型转换为关系模型时,实体之间多对多联系在模型中是通过______。
选择题 下面程序的输出结果是______。
typedef union {long x[1];
int y[4];
char z[10];
}M;
M t;
main()
{ printf('%d\n',sizeof(t));
}
选择题 有以下程序
#include<stdio.h>
typedef struct stu {
char name[10];
char gender;
int score;
} STU;
void f(STU *a, STU *b)
{ b=a;
printf('%s,%c,%d,',b->name,b->gender,b->score);
}
main()
{ STU a={'Zhao','m',290),b={'Qian','f',350);
f(a,b);
printf(%s,%c,%d\n',b.name,b.gender,b.score);
}
程序的运行结果是______。
选择题 以下针对全局变量的叙述错误的是______。
选择题 若变量x、y已正确定义并赋值,以下符合C语言语法的表达式是______。
选择题 以下叙述中错误的是______。
选择题 某棵树的度为4,且度为4,3,2,1的结点个数分别为1,2,3,4,则该树中的叶子结点数为______。
选择题 在面向对象方法中,不属于“对象”基本特点的是______。
选择题 以下程序:
#include<stdio.h>
#include<string.h>
main()
{ char str[]='abcd\n\123\xab';
printf('%d',strlen(str));
}
运行后的输出结果是______。
选择题 有以下程序
#include<stdio.h>
int a=4;
int f(int n)
{ int t=0; static int a=5;
if(n%2) {int a=6; t+=a++; }
else {int a=7; t+=a++; }
return t+a++;
}
main()
{ int s=a, i=0;
for(; i<2; i++) s+=f(i);
printf('%d\n',s);
}
程序运行后的输出结果是______。
选择题 有以下程序段:
char name [20];
int num;
scanf('name=%s num=%d',name,num);
当执行上述程序段,并从键盘输入:name=Lili num=1001<回车>后,name的值为______。
选择题 以下程序的输出结果是______。
#include<stdio.h>
main()
{ int a=1,b=3;
if((++a<0)!(b--<=0))
printf('%d,%d\n',a,b);
else
printf('%d,%d\n',b,a);
}
选择题 每条C语句经过编译,最终都将转换成二进制的机器指令。关于转换以下说法错误的是______。
选择题 以下选项中,能用作用户标识符的是______。
选择题 带链队列空的条件是______。
选择题 以下叙述中正确的是______。
选择题 有以下程序:
# include <stdio.h>
void fun(char *c,int d)
{ *c=*c+1,d=d+1;
printf('%c,%c', *c,d);
}
main()
{ char b='a',a='A';
fun(&b,a);printf('%c,%c\n',b,a);
}
程序运行后的输出结果是______。
选择题 以下关于C语言数据类型使用的叙述中错误的是______。
选择题 循环队列的存储空间为Q(1:40),初始状态为front=rear=40。经过一系列正常的入队与退队操作后,front=rear=15,此后又退出一个元素,则循环队列中的元素个数为______。
选择题 执行下列程序时输入456<空格>789<空格>123<回车>,输出结果是______。
#include<stdio.h>
main()
{char m[80];
int c,i;
scanf('%c',c);
scanf('%d',i);
scanf('%s',m);
printf('%c,%d,%s\n',c,i,m);}
