问题 填空题

以下程序的功能是对10个整数从小到大排序。请填空。 #include<stdio.h> sort(int arr[],int n); main() {int a[10],*p,i; printf("input 10 numbers:"); for(i=0;i<10;i++)scanf("%d",&a[i]); printf("\nthe original array is:"); for(p=a;P<a+10;p++)printf("%d",*p); sort(a,10); printf("\nthe present array is:"); for(P=a;P<a+10;P++)printf("%d",*p); } sort(int arr[],int n) {int*p1,*p2,temp; for(p1=arr;p1<arr+(n-1);p1++) for(p2=p1+1;p2<arr+n;p2++)if(______){temp=*p1;*p1=*p2;*p2=temp;} }

答案

参考答案:*p1>*p2

完形填空

When I knocked into a stranger, “Oh, excuse me, please.” was my        . He said, “Please excuse me, too.” We were very       , this stranger and I. But at home a different story is told.

Later that day, while I was cooking the evening meal, my daughter stood beside me quietly. When I turned, I nearly made her fall onto the floor. “Get out of my way!” I said       . She walked away with tears(眼泪) in her eyes. I didn’t     how rudely I’d spoken. Later, I went into the        again, and found some flowers there by the door. Those were the flowers she picked for me. I felt really        and my tears began to fall. For a stranger, we can be polite, but for the ones we love, we seem to be rude.

If we die tomorrow, the company we are working for could easily take our place soon. _    the family we left behind will feel the loss(损失) for the rest of their lives.

      is behind the story? You know what is the full word of       ?

FAMILY = (F)ather    (A)nd    (M)other    (I)   (L)ove   (Y)ou

Fill life        love and courage, and we shall live an uncommon life.

小题1: 

A.report

B.reply

C.reason

D.review小题2: 

A.proud

B.rude

C.upset

D.polite小题3:

A.quietly

B.happily

C.angrily

D.deeply小题4:

A.check

B.ask

C.realize

D.mean小题5:

A.kitchen

B.living room

C.office

D.building小题6:

A.excited

B.lonely

C.disappointed

D.sorry小题7:

A.Because

B.But

C.Unless

D.Since小题8:

A.What

B.How

C.Why

D.Who小题9:

A.love

B.family

C.home

D.courage小题10:

A.of

B.for

C.with

D.from

单项选择题