问题 问答题

论述题1(20分):设有一个大学信息学院学生管理系统软件,其学生文件Student记录的部分属性包括Name、Num、Age、Sex、Dept等,其中:Name(学生名)要求最少2个字符,最多8个字符;Num(学号)要求是10位无符号整数,取值范围为2010200001~2010203335;Age(年龄)要求是2位无符号整数,取值范围为12~99;Sex(性别)是枚举型,只有两个取值male(男)、female(女);Dept(系名)是枚举型,取值可以是AT(自动化系)、CS(计算机系)、ET(电子系)、MN(微纳电子系)、SW(软件学院)。现有一个新开发的查询程序,要求输入学生年龄的上限A、性别S、系名D,利用文件Student查询所有年龄小于A岁且性别为S的D系的学生并输出这些学生的姓名和年龄。请针对此程序完成以下工作:

用等价类测试方法给出输入条件的等价类表。(18分)

答案

参考答案:

单项选择题 A1/A2型题
阅读理解

The justification for a university is that it preserves the connection between knowledge and the zest of life, by uniting the young and the old in the imaginative consideration of learning. The university imparts information, but it imparts it imaginatively. At least, this is the function which it should perform for society. A university which fails in this respect has no reason for existence. This atmosphere of excitement, arising from imaginative consideration, transforms knowledge. A fact is no longer a burden on the memory, it is energizing as the poet of our dreams and as the architect of our purposes.

Imagination is not to be divorced from the facts: it is a way of illuminating the facts. It works by eliciting the general principles which apply to the facts, as they exist, and then by an intellectual survey of alternative possibilities which are consistent with those principles. It enables men to construct an intellectual vision of a new world, and it preserves the zest of life by the suggestion of satisfying purposes.

Youth is imaginative, and if the imagination be strengthened by discipline, this energy of imagination can in great measure be preserved through life. The tragedy of the world is that those who are imaginative have but slight experience, and those who are experienced have feeble imagination. Fools act on imagination without knowledge; pedants(学究)act on knowledge without imagination. The task of university is to weld together imagination and experience.

1. The main theme of the passage is ____.

A. the access to knowledge in university   B. the function of universities

C. the role of imagination in our lives

D. the relationship between imagination and experience

2. According to the passage, the justification for a university is that ____.

A. it presents facts and experience to young and old

B. it imparts knowledge to imaginative people

C. it combines imagination with knowledge and experience

D. it enables men to construct an intellectual vision of the world

3. The word “eliciting” in paragraph 2 probably means ____.

A. applying      B. challenging     C. drawing forth      D. preserving

4. Which of the following is NOT discussed as one of the things imagination can do?

A. It makes our life exciting and worthwhile.    B. It helps us to understand the world.

C. It helps us to formulate Laws about the facts.  D. It provides inspiration to the artists.

5. According to the author, the tragedy of the world is that ____.

A. our energy of imagination cannot be preserved  B. our imagination is seldom disciplined

C. we grow old inevitably     D. too many people are either fools or pedants