问题 单项选择题

(31)到(35)题使用如下数据表。
“作者”表:
作者编号 姓名 所在城市
1101 张晓云 北京
1102 李丽北京
1103 袁熙林 上海
1104 赵三立 广州
1105 方德胜 上海
1106 刘清北京
“图书”表:
图书编号 书名 出版单位 价格 作者编号 页数
1101 计算机基础知识 经济科学出版社 32.80 1101 252
2202 会计基础知识 经济科学出版社 17.80 1105 215
1102 VB9.0初级入门 人民邮电出版社 22.50 1102 264
1103 Word2003基础知识 大地出版社19.80 1101 298
1105 VFP6.0程序设计基础 大地出版社38.50 1103 310
2201 中级会计财务知识 经济科学出版社 28.80 1106 245
1110 计算机网络基础 高等教育出版社 26.50 1101 258
1111 计算机组成原理 北京大学出版社 31.20 1103 98
1112 数据库设计原理 高等教育出版社 35.50 1101 330
1113 C语言程序设计 北京大学出版社 32.00 1102 326
1114 软件设计分析高等教育出版社 34.50 1102 330
2203 信息系统分析理论 经济科学出版社 25.50 1102 235

执行如下SQL语句:

SELECT MIN(价格)FROM 图书 INTO ARRAY temp

则temp[2]的结果是( )。

A.17.80

B.0

C..F.

D.下标超界

答案

参考答案:D

解析: 本题的查询结果中只有一个图书价格的最小值,并将查询结果保存到数组temp中。由于查询结果只有一个数据,即只有temp[1]中有数据,而本题要求的是temp[2]的值,所求的数组下标超出范围,系统报错。

选择题
阅读理解

This parable(寓言)is told of a farmer who owned an old mule(骡子). The mule fell into the farmer’s well. The farmer heard the mule praying for whatever mules do when they fall into wells. After carefully assessing(评估)the situation, the farmer sympathized(同情)with the mule, but decided that neither the mule nor the well was worth the trouble of saving. Instead, he called his neighbors together , told them what had happened, and asked them to help pour dirt to bury the old mule in the well and put him out his misery.

At the beginning, the old mule was crazy! But as the farmer and his neighbors continued shovelling and the dirt hit his back, a thought struck him. It suddenly dawned on him that every time a shovel load of dirt landed on his back, he would shake it off and step up!

This he did, blow after blow. “Shake it off and step up… shake it off and step up… shake it off and step up!” He repeated to encourage himself. No matter how painful the blows, or how distressing the situation seemed, the old mule fought panic and just kept right on shaking it off and stepping up!

It wasn’t long before the old mule, battered and exhausted, stepped triumphantly(胜利地)over the wall of that well! What seemed like it would bury him actually helped him… all because of the manner in which he handled his adversity(逆境).

That’s life! If we face our problems and respond to them positively, and refuse to give in to panic, bitterness, or self-pity.

The adversities that come along to bury us usually have within them the very real potential to benefit us! Never be afraid to try something new. Remember that amateurs(生手)built the boat. Professionals built the Titanic.

小题1:Why did the farmer decide to bury the mule in the well?

A.Because he thought the mule was of little use.

B.Because he didn’t like the praying made by the mule.

C.Because he thought the well couldn’t be used any longer after the accident.

D.Because he didn’t want to see the mule suffer more in the well.小题2:What does the underlined sentence in the second paragraph mean?

A.The mule became calm

B.The mule became quiet.

C.The mule suddenly had an idea

D.The mule lost heart.小题3:Who saved the mule at last?

A.The farmer

B.The farmer’s neighbors

C.The farmer and his neighbors

D.The mule himself小题4:What lesson can we learn from the passage?

a. One should give up something of little use.

b. One should depend oneself when in trouble.

c. One should show mercy to others who are in trouble.

d. There must be something that one can do well no matter what he is.

e. Be self-determined and never give up, and one can succeed in the end.

A.a, b, e

B.b, d, e

C.a, c, e

D.b, c, e