问题 单项选择题

假设temp.dbf数据表中有两个字段“歌手号”和“最后得分”,下面程序段的功能是:将temp.dbf中歌手的“最后得分”填入“歌手”表对应歌手的“最后得分”字段中(假设已增加了该字段),在下划线处应该填写的SQL语句是( )。
USE歌手
DO WHILE.NOT.EOFO
______
REPLACE 歌手.最后得分 WITH a[2]
SKIP
ENDDO

A.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号 TO ARRAY a

B.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号 INTO ARRAY a

C.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号 TO FILE a

D.SELECT*FROM temp WHERE temp.歌手号=歌手.歌手号 INTO FILE a

答案

参考答案:B

解析: 选项A)的命令格式错误,将查询结果保存在数组星应该是:INTO ARRAY短语。由程序语句“REPLACE歌手,最后得分WITH a[2]”中的“a[2]”可以看出a是一个数组名,a[2]指的是数组a中的第2个元素,所以填写的SQL语句中一定用到了数组a。而选项C)和选项D)中,是将查询结果保存在文本文件中,故可以排除。程序的功能是:在歌手表中,从第一条记录开始,在temp表中找到与该记录的歌手号相同的记录,并把记录的所有字段保存在数组a中,由于temp表中只有“歌手号”和“最后得分”两个字段,所以数组a中有两个元素,第一个是“歌手号”,第二个是“最后得分”,再用REPLACE命令将歌手表中当前记录中的“最后得分”字段用a[2]替换,即填入了“最后得分”。当一条记录处理结束之后,SKIP命令将记录指针指向歌手表的下一条记录,进行同样的处理,最终将歌手表中的“最后得分”字段填写完毕。

判断题
单项选择题

There (1) not one type of reading but several according to your reasons for reading. To read carefully, you have to (2) your reading speed and technique (3) your aim (4) reading. Skimming is a technique necessary for quick and efficient reading.

When skimming, you (5) the reading (6) quickly in order to get the (7) of it, to know how it is organized, (8) an idea of the tone or the intention of the writer. Skimming is (9) an activity which (10) an overall view of the text and (11) a definite reading competence.

Skimming doesn’t need reading all the material, but it doesn’t mean that it is an (12) skill for the lazy, because it need a high degree of alertness and concentration.

When you read, you usually start with (13) understanding and move towards detailed understanding rather than working the other way round. But (14) is also used after you have already carefully studied and you need to (15) the major ideas and concepts.

In order to be able to skim quickly and (16) through a text, you should know where to look for what you want. In preview skimming you read the introductory information, the headings and subheadings, and the summary, if one is provided. (17) this skimming, decide whether to read the material more thoroughly, and select the appropriate speed (18) you read.

The same procedure (19) for preview skimming could also be used to get an overview. Another method would be to read only key words. This is done by omitting the unnecessary words, phrases, and sentences.

In order to skim efficiently and fulfill your purpose, (20) practice is necessary.

20().

A.a number of

B.an amount of

C.many

D.a few