问题 听力题

单词拼写(共10小题;每小题1分,满分10)

根据下列句子及所给单词的首字母或汉语注释,在句子右边的横线上写出该单

的正确形式。

小题1:You may use      (面部)expressions, hands movements and anything to get your meaning across in learning a new language.       

小题2:With the eacher 's      (解释),they came to understand the difficult roblem.

小题3:After a good rest, her health is         (渐渐地)improving.

小题4:Chinese characters are the most beautiful,           (比较)with the words in other languages.

小题5:            (物理)is the last subject I like.

小题6: We all support his          (科学) research.

小题7:Great  changes   have   taken   place  on        (主要的)roads..

小题8:The famous university is         (坐落)at the foot of a mountain.

小题9:The factory brought in a piece of advanced    (设备), which cost a lot.

小题10:We hired a local     (导游)to get us across the mountains.

答案

小题1:facial 

小题1:explanation

小题1:gradually 

小题1:compared   

小题1:Physics 

小题1:scientific

小题1:major

小题1:locatecd   

小题1:equipment

小题1:guide

小题1:You may use      (面部)expressions, hands movements and anything to get your meaning across in learning a new language.       

在学习一种新语言时,你可以使用面部表情、手势和任何可以达到理解事物。

小题1:With the teacher 's      (解释),they came to understand the difficult problem.

借助老师的解释,他们渐渐地理解了这道难题。

小题1:After a good rest, her health is         (渐渐地)improving.

好好休息以后,她的身体在渐渐地恢复。

小题1:Chinese characters are the most beautiful,           (比较)with the words in other languages.

跟其它语言的文字相比,汉字最美。

小题1:            (物理)is the last subject I like.

物理是我最不喜爱的科目。

小题1: We all support his          (科学) research.

我们大家都支持他的科学研究。

小题1:Great  changes   have   taken   place  on        (主要的)roads.

在主要的道路上,发生了巨大的变化。

小题1:The famous university is         (坐落)at the foot of a mountain.

这所著名大学坐落在山脚下。

小题1:The factory brought in a piece of advanced    (设备), which cost a lot.

这个工厂引进了一批高级设备,这花了一大笔金钱。

小题1:We hired a local     (导游)to get us across the mountains.

为了使我们穿过大山,我们雇佣了当地导游。

问答题

[说明]
在某些系统中,存在非常复杂的对象,可以采用循序渐进的方式,进行组合将小对象组合成复杂的对象。
以下实例展示了Builder(生成器)模式。该实例用来建立“文件”,文件内容包括:一个标题、一串字符以及一些有项目符号的项目。Builder类规定组成文件的方法,Director类利用这个方法产生一份具体的文件。图7-1显示了各个类间的关系。
[图7-1]


以下是C语言实现,能够正确编译通过。
[C代码]
typedef void( (1) )(char *title);
typedef void(*fun2)(char items[] [10], int N);
typedef char* (*fun3)();
char buffer[500];
struct Builder//构造器
fun1 makeTitle;
(2) makeString;
fun2 makeItems;
fun3 getResult;
;
struct Director
struct Builder builder;
;
char* construct( (3) director)//构造文件

char items[2][10] = "早安", "午安";
director->builder.makeTitle("Greeting");
director->builder.makeString("从早上到白天结束");
director->builder.makeItems(items, 2);
director->builder.makeString("到了晚上");
strcpy(items[0], "晚安");
strcpy(items[1], "好梦");
director->builder.makeItems(items, 2);
return director->builder.getResult();

void TXTmakeTitle(char* title)

strcat(buffer, "『");
Strcat(buffer, title);
strcat(buffer, "』\n\n");

void TXTmakeString(char* str)

strcat(buffer, "■");
Strcat(buffer, str);
strcat(buffer, "\n\n");

void TXTmakeItems(char items[] [10], int N)//将items加入文件中

for(int i = 0, i < N; i++)
strcat(buffer, "·");
strcat(buffer, (4) );
strcat(buffer, "\n");

strcat(buffer, "\n");

char* TXTgetResult()

return buffer;

void main()

Director director;
(5) = ’\0’;//清空缓冲区,使目前缓冲区中的内容不影响新生成的文件
director.builder.makeTitle = TXTmakeTitle;
director.builder.makeString = TXTmakeTitle;
director.builder.makeItems = TXTmakeItems;
director.builder.getResult = TXTgetResult;
char* result = construct(&director);
printf("%s\n", result);

判断题