问题 填空题

阅读下列说明和C++代码,将应填入 (n) 处的字句写在对应栏内。

[说明]

某软件公司现欲开发一款飞机飞行模拟系统,该系统主要模拟不同种类飞机的飞行特征与起飞特征。需要模拟的飞机种类及其特征如表18-6所示。

为支持将来模拟更多种类的飞机,采用策略设计模式(Strategy)设计的类图如图18-21所示。

在图18-21中,AirCraft为抽象类,描述了抽象的飞机,而类Helicopter、AirPlane、Fighter和Harrier分别描述具体的飞机种类,方法fly()和takeOff()分别表示不同飞机都具有飞行特征和起飞特征;类FlyBehavior与TakeOffBehavior为抽象类,分别用于表示抽象的飞行行为与起飞行为;类SubSonicFly与SuperSonicFly分别描述亚音速飞行和超音速飞行的行为;类VerticalTakeOff与LongDistanceTakeOff分别描述垂直起飞与长距离起飞的行为。

[C++代码]

#include<iostream>

using namespace std;

class FlyBehavior

public:virtual void fly()=0;

class SubSonicFly:public FlyBehavior

public:void fly()cout<<"亚音速飞行!"<<end1;

Class SuperSonicFly:public FlyBehavior

public:void fly()cout<<"超音速飞行!"<<end1;

class TakeOffBehavior

public:virtual void takeOff()=0;

class VerticalTakeoff:public TakeOffBehavior

public:void takeOff()cout<<"垂直起飞!"<<end1;

class LongDistanceTakeoff:public TakeOffBehavior

public:void takeOff()cout<<"长距离起飞!"<<end1;

class AirCraft

protected:

(1)

(2)

public:

void fly() (3)

void takeOff() (4) ;;

class Helicopter:public AirCraft

public:

Helicopter()

flyBehavior=new (5)

takeoffBehavior=Flew (6)

(7)

if(!flyBehavior)delete flyBehavior;

if(!takeOffBehavior)delete takeOffBehavior;

//其他代码省略

(3)处填()。

答案

参考答案:flyBehavior->fly()

综合题

政治活动是人类社会活动的重要组成部分,在漫长的人类文明发展进程中,世界各国曾出现过各色各样的政治模式。阅读下列材料,回答问题。

材料一       

料二  1911年在中国建立起美国共和政体的仿制品,真是荒唐可笑……这种共和政体悲惨的结束了,即悲惨的失败了。然而,失败的并不是这种政体,而是一代人。

——N·佩弗《远东》

材料三  2010年3月3日下午,中国人民政治协商会议第十一届全国委员会第三次会议在北京人民大会堂开幕。这是党和国家领导人胡 * * 、吴邦国、温 * * 、贾庆林、李长春、习 * * 、李克强、贺国强、周永康等步入会场。

——人民网

材料四 看一个政体是不是民主政体,不能看是不是具备了某些形式,关键是要看它是否建立在法治之上,能否构建一种科学的监督机制,能否把民主与集中合理地结合起来。

——梅宁华《对现代国家制度的新思考》

(1)据材料一,图一唐朝政治制度的基本特征是什么?图二政府机构的设置体现了什么原则?(5分)

(2)材料二中的“仿制品”指什么?对于“失败的并不是这种政体,而是一代人”你是怎么理解的?(6分)

(3)材料三体现了新中国的哪项政治制度?结合材料四分析这项政治制度有何优越性?(6分)

(4)材料一、三体现的三种政治模式在形式上有何共性?请概括说明这三种政治模式在本质上有什么不同。(8分)

完形填空

 

第二节:完形填空(共20小题,每小题1.5分,满分30分)

阅读下面短文,从短文后各题所给的A、B、C、D四个选项中,选出可以填入空白处的最佳选项,并将答案写在答题卡上。

After their business trip, John and Mary returned, eager to see their lovely children. As they drove into their home town feeling glad to be back, they noticed 21  , and they went off their usual route to see what it was. They found a  22  in flames. Mary said, “Oh, well, it isn’t our fire, let’s go home.”

But John 23  closer and screamed, “That home belongs to Fred Jones who works at the plant. He wouldn’t be 24  work yet, maybe there is something we could do. ” It has nothing to do with us, Mary 25 .

But John drove up and stopped and they were both horror-stricken to see the whole house in 26  . A woman on the lawn was screaming, “The children! Get the children!” John 27  her by the shoulder saying, “Get a hold of yourself and tell us where the children are!” “In the 28 ,” cried the woman, “down the hall and to the left. ”

In spite of Mary’s disagreement John 29  for the basement which was full of smoke and 30  hot. He found the door and two children. 31 he left he could hear some more sobbing. He 32  the two badly frightened children into 33  arms and started back asking how many more children were down there. They told him 34  more and Mary grasped his arm and screamed, “John! Don’t go back! It’s 35  ! That house will fall down any second. ”

36  he ran into the smoke-filled hallway and at last he found both children. As he climbed up the 37 stairs, the thought went through his mind that there was something strangely 38 about the little bodies next to him, and at last when they came out into the  39  and fresh air, he found that he had just  40 his own children.

The baby-sitter had left them at this home while she did some shopping.

21.A.direction       B.mistake          C.smoke       D.danger

22.A.plant        B. home           C.store           D.kitchen

23.A.ran          B.walked              C.rode        D. drove

24.A.off         B.at                C. to                D.on

25.A.whispered   B. disagreed          C.nodded        D.required

26.A.flames     B.pieces             C.ruins          D.silence

27.A.pushed      B.greeted           C. seized          D.stopped

28.A.hall       B.department         C.house          D. basement

29.A.went      B. rushed            C.asked           D.reached

30.A.heavily     B.terribly            C.partly           D.slightly

31.A. As       B.If                 C.Since            D.Unless

32.A.comforted  B.protected          C.recognized       D. delivered

33.A.cheering   B.freezing           C.suffering           D. waiting

34.A.many            B.several           C.two                 D.three

35.A.foolish     B. dangerous            C.practical           D.painful

36.A.But        B.So               C.Instead            D.Therefore

37.A.wide       B.dirty             C.final               D. endless

38.A.particular    B.familiar         C.interesting          D.fortunate

39.A.car         B.crowd            C. sunlight           D.arms

40.A. found     B.     rescued       C.lost               D.Missed