题库 题库

【单选题】

一个教师可讲授多门课程,一门课程可由多个教师讲授。则实体教师和课程间的联系是(  )。
  • A.1:1联系

  • B.1:m联系

  • C.m:1联系

  • D.m:n联系

参考答案

查看答案

相关试题

单选题 计算机高级语言程序的运行方法有编译执行和解释执行两种,以下叙述中正确的事(  )。 查看答案
单选题 有以下程序:
#include
#include
main(  )
{ char a[5][10]={"china","beijing","you","tiananmen","welcome");
int i,j;char t[10];
for(i=0;i<4;i++)
for(j=i+1;j<5;j++)
if(strcmp(a[i],a[j]>O)
{strcpy(t,a[i]);strepy(a[i],a[j]);strcpy(a[j],t)};
puts(a[3]);
}
程序运行后的输出结果是(  )。
查看答案
单选题 对如下二叉树进行后序遍历的结果为(  )。
查看答案
单选题 有下列程序:
int funl(double a){return a*=a;}
int fun2(double x,double y)
{double a=0,b=0;
a=funl(x);b=funl(y);return(int)(a+b);
}
main(  )
{double w;w=fun2(1.1,2.0),……}
程序执行后变量w中的值是(  )。    、
查看答案
单选题 有以下程序:
#include
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;
}
程序运行后的输出结果是(  )。
查看答案
单选题 若有以下语句:
typedef struct S
{int g;char h;}T;
以下叙述中正确的是(    )。
查看答案
单选题 有以下程序,程序中库函数islower(ch)用以判断ch中的字母是否为小写字母
#include
#include
void fun(char*p)
{int i=0;
while(p[i])
{ if(p[i]=="&&islower(p[i-1]))p[i一1]=p[i-1]='a'+'A';
i++。
}
}
main()
{char sl[100]="ab cd EFG!";
fun(a1);printf("%s\n",sl);
程序运行后的输出结果是(    )。
查看答案
单选题 有以下程序:
#include
#include
void fun(int*pl,int*p2,int*s)
{  s=(int*)malloc(sizeof(int));
*s=*pl+*p2;
free(s);
}
main(  )
{ int a=1,b=40,*q=&a;
fun(&a,&b,q);
printf("%d\n",*q);
}
程序运行后的输出结果是(  )。
查看答案
单选题 下列合法的声明语句是(  )。 查看答案
单选题 下列叙述中正确的是(  )。 查看答案
单选题 av9功能是求整形数组中的前若干个元素的平均值,设数组元素个数最多不超过则下列函数说明语句错误的是(  )。 查看答案
单选题 有以下程序:
#include
main()
{ char s[]="rstuv";
printf("%c\n",*s+2);
}
程序运行后的输出结果是(    )。
查看答案
单选题 有下列程序:
main(  )
{ int k=5;
while(--k) printf("%d",k=1);
printf("/n");
}
执行后的输出结果是(  )。
查看答案
单选题 有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数):
#include
#include
main(  )
{char a[10]="abc",b[10]="012",c[10]="xyz";
strcpy(a+1,b+2);
puts(strcat(a,c+1));
}
程序运行后的输出结果是(  )。
查看答案
单选题 有以下程序:
#include
#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("Ha",a[i]);}
printf("\n");
}
程序运行后的输出结果是(  )。
查看答案
单选题 有以下程序:
#include
#define N 4
void fun(int a[][N],int[])
{  int i;
for(i=o;i
}
main(  )
{ int x[N][N]={{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}},y[N],i;
fun(X,y);
for(i=0;i
}
程序运行结果为(  )。
查看答案
单选题 以下选项中关于程序模块化的叙述错误的是(  )。 查看答案
单选题 在面向对象方法中,实现信息隐蔽是依靠(  )。 查看答案
单选题 有以下程序(strcat函数用以连接两个字符串)
#include
#include。
main()
{char a[20]="ABCD\oEFG\0",h[]="IJK";
strcat(a,b);printf("%s\n",a);
)
程序运行后的输出结果是(    )。
查看答案
单选题 有以下程序:
#include
main(  )
{char ch[3][5]={"AAAA","BBB","CC"};
printf("%s\n",ch[l]);
}
程序运行后的输出结果是(  )。
查看答案