问题 阅读理解

Fun Day
To celebrate the Year of the snake
Organised by Lam Tin Youth Centre and Kwun Tong High School
Date: 2 February 2013
Time: 10 am—5 pm
Place: Kwun Tong Playground
Fee: $20 (buy three get one free)
Programmes: drama, lion dance, magic show and ballet performance
Highlights: 1) enter the lucky draw to win a digital camera
2) learn to make festival food
Join us on the Fun Day!
All are welcome!
Free Soft Drinks
Note:
● Tickets are available at the General Office of Lam Tin Youth Center
● For those who would like to be a volunteer, please contact Miss Olivia Wong one week before the activity.
小题1:What you have just read is a ________.
A.noteB.posterC.schedule D.report
小题2:What is going to take place on 2 February 2013?
A.A big event to welcome a Chinese new year.
B.A social gathering to raise money for wildlife.
C.A party for close friends to meet and have fun.
D.A meeting of Kwun Tong High School students.
小题3:How much do you have to pay in total if four of you go together?
A.$20.B.$40. C.$80.D.$60.
小题4:Which of the following statements is true?
A.Tickets are sold in Kwun Tong High School.
B.Free digital cameras are provided for everybody.
C.It’s unnecessary to take soft drinks with you.
D.Festival food will be served without extra charge.
答案

小题1:B

小题2:A

小题3:D

小题4:C

题目分析:本文是一份关于蛇年庆祝活动海报。

小题1:推断题: note笔记;poster 海报,广告;schedule时间表,计划表;report报告。通过快速阅览全文,通过“date;time;place;fee;programmes;highlights;note”等词,得知是在介绍一项活动,因此,判定文章是一篇海报,故选B。

小题2:细节题:根据题干关键词2 February 2013定位原文,是一项活动的举办时间,这项活动就是文章的标题部分Fun Day to celebrate the Year of the snake,因此选A。

小题3:推断题:根据关键词“how much…pay”定位原文的“fee”,“buy three get one free(买三赠一)”可知四个人主要买3张票就可以了,故选D。

小题4:推断题:根据B项中的关键词“soft drinks”定位原文,可知,饮料是免费的,因此没有必要自带饮料,故选C。

单项选择题
填空题

阅读下列说明和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) 个类。

(7)处填()。