题目内容

第一节 词语配伍
从下栏所给选项中选出与各项意义相符的选项,并在答题卡1上将该项涂黑。
[A] yellow
[B] hotel
[C] doctor
[D] park
[E] ruler
[F] police
[G] paper
He is the person who treats the patients.

查看答案
更多问题

People can play and rest there.

SECTION B NOTE-WRITING (10 MIN)
Write on ANSWEER SHEET TWO a note of about 50~60 words based on the following situation:
Jane, your classmate, is thinking of subscribing to an English-language newspaper. And you would like to reconunend one to her. Write a note, telling her which newspaper it is and describing two features of the paper.
Marks will be awarded for content, organization, grammar and appropriateness.

阅读下列函数说明和C++代码,将应填入(n)处的字句写在对应栏内。
[说明]
在销售系统中常常需要打印销售票据,有时需要在一般的票据基础上打印脚注。这样就需要动态地添加一些额外的职责。如下展示了Decorator(修饰)模式。SalesOrder对象使用一个SalesTicket对象打印销售票据,先打印销售票据内容,然后再打印脚注。图5-1显示了各个类间的关系。以下是C++语言实现,能够正确编译通过。
[图5-1]
[C++代码]
class Component{
public:
(1) void prtTicket()=0;
};
class SalesTicket:public Component{
public:
void prtTicket(){
cout<<"Sales Ticket!"<<endl;
}
};
class Decorator:public Component{
public:
virtual void prtTicket();
Decorator(Component *myC);
private:
(2) myComp;
};
Decorator::Decorator(Component *myC)
{
myComp=myC;
}
void Decorator::prtTicket()
{
myComp->prtTicket();
}
class Footer:public Decorator{
public:
Footer(Component *myC);
void prtTicket();
void prtFooter();
};
Footer::Footer(Component *myC): (3) {}
void Footer::prtFooter()
{
cout<<"Footer"<<endl;
}
void Footer::prtTicket()
{
(4) ;
prtFooter();
}
class SalesOrder{
public:
void prtTicket();
};
void SalesOrder::prtTicket()
{
Component *myST;
myST=new Footer((5) );
myST->prtTicket();
}
(1)

SECTION B ENGLISH TO CHINESE
Directions: Translate the following text into Chinese.
But, as has been true in many other cases, when they were at last married, the most ideal of situations was found to have been changed to the most practical. Instead of having shared their original duties, and as school-boys would say, going halves, they discovered that the cares of life had been doubled. This led to some distressing moments for both our friends; they understood suddenly that instead of dwelling in heaven they were still upon earth, and had made themselves slaves to new laws and limitations. Instead of being freer and happier than ever before, they had assumed new responsibilities; they had established a new household, and must fulfill in some way or another the obligations of it. They looked back with affection to their engagement; they had been longing to have each other to themselves, apart from the world, but it seemed they never felt so keenly that they were still units in modern society.

答案查题题库