问题 填空题

两个完全相同的梯形一定可以拼成一个(    )形,这个图形的底等于(    )。每个梯形的面积等于拼成图形面积的(    )。

答案

平行四边;梯形的上下底之和;

完形填空
Happiness is for everyone, and you don’t need to care about those people who have beautiful houses with         and swimming pools or those who have nice cars         a lot of money and so on. Why? Because those who have big houses may often         lonely and those who have cars may want to walk on the country roads in their free time.
In fact, happiness is always around you if you put your heart into it. When you are  in         at school, your friends will help you; when you study at your lessons, your parents are always         good care of your life and your health; when you get        , your friends will say congratulations to you; when you do something wrong, people around you will help you to         it. And when you do something good to others, you will feel        , too. All these are your happiness. If you notice those things, you can see that happiness is always         you.
Happiness is not the same as money. It is a feeling of your heart. When you are        , you can also say you are very happy because you have something else that can’t be bought with money. When you meet difficulties, you can say loudly you are very happy because you have more chances to         yourself. So you cannot always say you are poor or you have bad luck. As the saying goes: Life is like a revolving(转动的)door. When it        , it also opens. If you take every chance you get, you can be a happy and lucky person.
小题1:
A.treesB.flowersC.gardensD.cars
小题2:
A.andB.withC.butD.for
小题3:
A.beB.feelC.seemD.live
小题4:
A.wrongB.troubleC.problemD.danger
小题5:
A.makingB.talkingC.feelingD.taking
小题6:
A.regretB.troubleC.decisionD.success
小题7:
A.correctB.forgetC.changeD.know
小题8:
A.lonelyB.sorryC.happyD.beautiful
小题9:
A.beforeB.aroundC.followD.for
小题10:
A.poorB.luckyC.healthyD.angry
小题11:
A.developB.progressC.challengeD.exercise
小题12:
A.goesB.sleepsC.movesD.closes
填空题

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

[说明]

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

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

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

[Java代码]

interface FlyBehavior

public void fly();

class SubSonicFly implements FlyBehavior

public void fly()System.out.println("亚音速飞行!");

class SuperSonicFly implements FlyBehavior

public void fly()System.out.println("超音速飞行!");

interface TakeOffBehavior

public void takeOff();

class VerticalTakeoff implements TakeOffBehavior

public void takeOff()System.out.println("垂直起飞!");

class LongDistanceTakeOff implements TakeoffBehavior

public void takeOff()System.out.println("长距离起飞!");

abstract class AirCraft

protected (1)

protected (2)

publiC void fly() (3)

public void takeOff() (4) ;;

class Helicopter (5) AirCraft

publiC Helicopter()

flyBehavior=new (6)

takeOffBehavior=new (7)

//其他代码省略

(3)处填()。