问题 问答题

图为验证机械能守恒定律的实验装置示意图.现有的器材为:带铁夹的铁架台、电磁打点计时器、纸带、带铁夹的重锤、天平.回答下列问题:

(1)为完成此实验,除了所给的器材,还需要的器材有______.(填入正确选项前的字母)

A.米尺

B.秒表

C.0~12V的直流电源

D.0~I2V的交流电源

(2)实验中误差产生的原因有______.(写出两个原因)

答案

(1)用A项米尺测量长度,用D项交流电源供打点计时器使用.

(2)纸带与打点计时器之间有摩擦,用米尺测量纸带上点的位置时读数有误差,计算势能变化时,选取始末两点距离过近,交流电频率不稳定.

故答案为:(1)AD

(2)纸带与打点计时器之间有摩擦,用米尺测量纸带上点的位置时读数有误差,计算势能变化时,选取始末两点距离过近,交流电频率不稳定.

填空题

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

[说明]

现欲实现一个图像浏览系统,要求该系统能够显示BMP、JPEG和GIF三种格式的文件,并且能够在Windows和Linux两种操作系统上运行。系统首先将BMP、JPEG和GIF三种格式的文件解析为像素矩阵,然后将像素矩阵显示在屏幕上。系统需具有较好的扩展性,以支持新的文件格式和操作系统。为满足上述需求并减少所需生成的子类数目,采用桥接(Bridge)设计模式进行设计所得类图如图18-17所示。

采用该设计模式的原因在于:系统解析BMP、GIF与JPEG文件的代码仅与文件格式相关,而在屏幕上显示像素矩阵的代码则仅与操作系统相关。

[C++代码]

clasS Matrix //各种格式的文件最终都被转换为像素矩阵

//此处代码省略

class ImageImp

public:

virtual void doPaint(Matrix m)=0; //显示像素矩阵m

class Winlmp:public ImageImp

public:

void doPaint(Matrix m)/*调用Windows系统的绘制函数绘制像素矩阵*/

class Linuxlmp:public Imagelmp

public:

void doPaint(Matrix m)/*调用Linux系统的绘制函数绘制像素矩阵*/

class Image

public:

void setImp(Imagelmp *imp) (1) =imp;

virtual void parseFiie(string fileName)=0;

protected:

(2) *imp;

class BMP:public Image

public:

void parseFile(string fileName)

//此处解析BMP文件并获得一个像素矩阵对象m

(3) ;//显示像素矩阵m

class GIF:public Image

//此处代码省略

class JPEG:public Image

//此处代码省略

void main()

//在Windows操作系统上查看demo.bmp图像文件

Image *imagel= (4)

ImageImp *imageImpl= (5)

(6)

imagel->parseFile("demo.bmp");

现假设该系统需要支持10种格式的图像文件和5种操作系统,不考虑类Matrix,若采用桥接设计模式则至少需要设计 (7) 个类。

(5)处填()。

阅读理解

Over a period of time, many habitats (栖息地)change with respect to the types of plants and animals that live there. This change is known as succession.

Succession occurs because plants and animals cause a change in the environment in which they live. The first weeds and grasses that appear on a bare field, for example, change the environment by shielding the soil from direct sunlight. As these plants spread, the ground becomes cooler and more moist than it was originally. Thus, the environment at the ground surface has been changed. The new surface conditions favor the sprouting(产生)of shrubs. As shrubs grow, they kill the grasses by preventing light from reaching them and also enhance (增加)the soil. Pine seedlings (苗)soon take hold and as they grow, they in turn shade out the shrubs. They are not able to shade out oak and hickory (山核桃)seedlings, however, that have found the forest floor suitable.  These seedlings grew into large trees that eventually shade out the pines.

小题1:The best title of this passage is _____.

A.The Importance of Weeds and Grasses

B.The Success of Oak and Hickory

C.How Environmental Habitats Change

D.Animal and Plant Habitats小题2:It can be inferred (推理) from the passage that ______.

A.oak and hickory trees grow taller than pines

B.weeds and grasses prefer cold climate

C.pines and grasses can exist together

D.birds encourage the growth of shrubs小题3: Which of the following is a stage of succession as described in the passage?

A.A forest cut down to build an airport.

B.A flood washing away a crop of wheat

C.Wild flowers growing in an unused parking lot

D.Animals being tamed (驯服)by children