问题 单项选择题

(15)~(27)题使用的数据如下:
当前盘当前目录下有数据库db_ stock,其中有数据库表stock.. dbf,该数据库表的内容是:
股票代码 股票名称 单价 交易所
600600 青岛啤酒 7.48 上海
600601 方正科技 15.20 上海
600602 广电电子 10.40 上海
600603 兴业房产 12.76 上海
600604 二纺机 9.96 上海
600605 轻工机械 14.59 上海
000001 深发展 7.48 深圳
000002 深万科 12.50 深圳

如果在建立数据库表stock. dbf时,将单价字段的有效性规则设为“单价>0”,通过该设置,能保证数据的( )。

A.实体完整性

B.域完整性

C.参照完整性

D.表完整性

答案

参考答案:B

解析: 域完整性是指数据库数据取值的正确性。它包括数据类型、精度、取值范围以及是否允许空值等,题目中是在建立数据表的时候,就将单价字段的有效性规则设为“单价>0”,这就是对数据取值的取值范围进行规定,因此是域完整性的设定。

阅读理解

阅读短文,选择正确答案。

    If there is time for questions or discussion at the end of a class, take the chance to ask for further explanation

of anything that was not immediately clear. You are unlikely to be the only one who does not understand. So

our questions will help others and will encourage them to ask questions, and you should learn from all the

teacher's replies.

    Questions not only help students to learn but also show interest in the subject, and this makes the teacher's

work more useful. Besides, questions should help the teacher first to recognize things that students find difficult

and then to give better lessons. More questions will come to mind during your further studies. Try to find the

answers before the next class. This will help you to learn.

1. The writer of this passage advises us _____. [ ]

A. to ask for further explanation of everything we learn

B. to ask questions at the end of a class

C. to help others by asking the teacher questions

D. to encourage the teacher to give better lessons

2. According to the passage, you ask questions in order to ____. [ ]

A. make your teacher recognize you

B. encourage your school friends to learn better

C. make yourself and your classmates learn better

D. satisfy your teacher

3. According to the passage, questions are helpful _____. [ ]

A. either to the slow students or to the bright students

B. to both the teachers and the students

C. neither to the teachers nor to the students

D. especially to some teachers

单项选择题 A1型题