全部知识点
第1021题
在长度为n的顺序表中查找一个元素,假设需要查找的元素有一半的机会在表中,并且如果元素在表中,则出现在表中每个位置上的可能性是相同的。则在平均情况下需要比较的次数大约为
第1022题
在结构化程序设计中,模块划分的原则是
第1023题
C语言源程序名的后缀是
第1024题
有以下程序
main()
{
int x=35,B;
char z='B';
B=((x)&&(z<'b'));
printf("%d\n",B);
}程序运行后的输出结果是
第1025题
有下列程序:
#include <stdio.h>
#include <string.h>
typedef struct
{
char name[9];
char sex;
float score [2];
}STU;
STU f(STU a)
{
STU b = {"Zhao",'m',85.0,90.0};
int i;
strcpy(a.name,b.name)
a.sex=b.sex;
for(i = 0; i <2; i + +) a.score[i]= b.score[i];
return a;
}
main()
{
STU c ={"Qian",'f',95.0,92.0},d;
d = f(c);
printf("%s,%c,%2.0f,%2.0f\n"),d.neme,d.sex,d.score[0],d.score[1];
}程序的运行结果是
第1026题
设二叉树的前序序列与中序序列均为ABCDEFGH,则该二叉树的后序序列为
第1027题
在数据库系统中,考虑数据库实现的数据模型是( )。
第1028题
有以下程序
#include <stdio.h>
main()
{
int x=8;
for(;x>0;x--)
{
if(x%3){printf("%d,",x--);continue;}
printf("%d,",--x);
}
}程序的运行结果是
第1029题
在E-R图中,用来表示实体间联系的图形是
第1030题
有下列程序
#include <stdio.h>
void fun (int *a, int n)/*fun函数的功能是将a所指数组元素从大到小排序*/
{
int t,i,j;
for (i=0;i<n-1;j++)
for (j=i+1;j<n;j++)
if(a[i]<a[j) {t=a[i];a[i]=a[j];a[j]=t;}}
main()
{
int c[10]={1,2,3,4,5,6,7,8,9,0},i;
fun(c+4,6);
for(i=0;i<10;i++)
printf("%d,", c[i];
printf("\n");
}程序的运行结果是
第1031题
有以下程序
main()
{
int y=10;
while(y--);
printf("y=%d\n",y);
}程序执行后的输出结果是
第1032题
阅读以下程序
#include <stdio.h>
main()
{
int case;
float printF;
printf("Please enter 2 numbers:");
scanf("%d %f",&case,&printF);
printf("%d %f\n",case,printF);
}该程序在编译时产生错误,其出错原因是
第1033题
设某二叉树中共有140个结点,其中有40个度为1的结点。则
第1034题
学院的每名教师只能属于一个系,则实体系和实体教师间的联系是
第1035题
下列叙述中正确的是
第1036题
线性表的链式存储结构与顺序存储结构相比,链式存储结构的优点有
第1037题
设fp为指向某二进制文件的指针,且已读到此文件未尾,则函数feof(fp)的返回值为
第1038题
下面描述中正确的是
第1039题
有以下程序
#include <stdio.h>
int b=2;
int fun(int *k)
{
b=*k+b;
return(b);
}
main()
{
int a[10]={1, 2, 3, 4, 5, 6, 7, 8}, i ;
for (i=2;i<4;i++)
{
b=fun(&a[i]+b;
printf("%d",b);
}
printf("\n");
}程序运行后的输出结果是
第1040题
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数)
#include <stdio.h>
#include <string.h>
main()
{
char a[10]="abc", b[10]="012", c[10]="xyz";
strcpy (a+1, b+2);
puts (strcat (a, c+1);
}程序运行后的输出结果是