题目内容

Questions 21 to 23 are based on the following news. At the end of the news item, you will be given 15 seconds to answer the questions. Now listen to the news How long has Burma’s military been in power

A. For more than 30 years.
B. For more than 20 years.
C. For more than 50 years.
D. For more than 40 years.

查看答案
更多问题

阅读以下说明和C代码,将应填入 (n) 处的字句写在对应栏内。[说明]函数combine(a,b,c)是计算两个整数的组合数。由于计算结果可能超出10ng整型的可表示范围,故采用数组方式存储,例如:k位长整数m用数组c[]存储结构如下:m=c[k]×10k-1+c[k-1]×10k-2+…+c[2]×10+c[1],利用c[0]存储长整数m的位数,即c[0]=k。数组的每个元素只存储长整数m的一位数字,长整数运算时,产生的中间结果的某位数字可能会大于9,这是就应该调用format将其归整,使数组中的每个元素始终只存储长整数的一位数字。整数a和b(a>b)的组合数为:,其中u1=a,u2]=a-1,…,ub=a-b+1,d1=1,d2=2,…,db=b。为了计算上述分式,先从u1,u2,…,ub中去掉d1×d2×…×db的因子,得到新的u1,u2,…,ub,然后再将它们相乘。[函数]#define NAXN 100int gcd(int a,int b)//求两个整数a和b的最大公因子{if(a<b){intC=a;a=b;b=c;}for(inti=b;i>=2;i--){if( (1) )return i;}return 1;void format(int *a)//将长整数数组归整{int i;for(i=1;i<a[0]||a[i]>=10;i++){if(i>=a[0]) (2) ;a[i+1]+=a[i]/10;a[i]=a[i]%10;}if(i>a[0]) (3) ;}void combine(int a,int b,int *C){int i,J,k,x;int d[MAXN],u[MAXN];k=0;for(i=a;i>=a-b+1;i--)u[++k]=i;u[0]=b;for(i=1;i<=b;i++)d[i]=i;for(i=1;i<=u[0];i++){//从u中各元素去掉d中整数的因子for(j=1;j<=b;j++){x=gcd(u[i],d[j]);//计算最大公约数u[i]/=X;d[j]/=x;}(4) ;C[1]=1;//长整数c初始化for(i=1;i<=u[0];i++)(//将u中各整数相乘,存于长整数c中if(u[i]!=1){for(j=1;j<=c[0];j++){C[j]= (5) ;}format(C);//将长整数c归整}}} (2)处填()。

Question 30 is based on the following news. At the end of the news item, you will be given 5 seconds to answer the question. Now listen to the news.

A. Japanese auto-makers promised to stop dumping cars in the US
B. the Government promised to solve the US-Japan trade imbalance
C. three US companies have ended the US Japan trade imbalance
D. Japan agreed to sell cars at the agreed prices inside the US

______是企业中最稳定的因素,它足企业永恒的财富。

以下各题基于以下说明:设有如下图所示的两个关系S(sno,sname,sex)和SC(sno,cno,grade)。其中关系S的主码是sno,关系SC的主码是(sno,cno)。且关系SC的属性“no”是它的外码。要求grade的取值只能是0~100之间的整数。 关系 S 关系 SC sno sname sex sno cno grade S01 李红星 男 S01 C1 59 S10 洪宇宙 女 S01 C2 90 S20 张黎明 男 S03 NULL 120 关系数据库必须满足以下3类完整性规则: Ⅰ.实体完整性规则 Ⅱ.参照完整性规则 Ⅲ.用户定义的完整性规则 上述两个关系违背了______完整性规则。

A. 仅Ⅰ
B. 仅Ⅱ和Ⅲ
C. 仅Ⅰ和Ⅱ
D. Ⅰ、Ⅱ和Ⅲ

答案查题题库