问题 单项选择题

在Visual FoxPro中有如下程序: *程序名:TEST.PRG *调用方法:DO TEST SET TALK OFF CLOSE ALL CLEAR ALL mX="Visual FoxPro" mY="二级" DO SUB1 WITH mX mY+mX RETURN *子程序:SUB1.PRG PROCEDURE SUB1 PARAMETERS mX1 LOCAL mX mX=“Visual FoxPro DBMS考试” mY=“算机等级”+mY RETURN 执行命令DO TEST后,屏幕的显示结果为

A.二级Visual FoxPro

B.计算机等级二级Visual FoxPro DBMS考试

C.二级Visual FoxPro DBMS考试

D.计算机等级二级Visual FoxPro

答案

参考答案:D

解析:题目中的主程序TEST调用了子程序SUB1,调用过程中传递给子程序SUB1一个参数mX,由于在子程序SUB1中mX被定义为一个局部变量,其作用域只是在SUB1中有效,所以SUB1中的变量mX的值不会影响到主程序中TEST程序中的 mX,值发生改变的只是变量mY。子程序SUB1执行完毕后变量mY和mX值分别为“计算机等级二级”和“Visual FoxPro”。主程序最后利用“+”运算符将两个变量My和mX顺序连接,其结果为“计算机等级二级Visual FoxPro”。

填空题
单项选择题

There is a difference between science and technology. Science is a method of answering (1) questions; technology is a method of solving practical problems. Science has to do with discovering the facts and relationships between (2) phenomena in nature and with establishing theories that (3) to organize these facts and relationships; technology has to do with tools, techniques, and (3) for applying the findings of science. Another (5) between science and technology has to do with the progress in each.

Progress in science (6) the human factor. Scientists, who seek to understand the universe and know the truth within the highest degree of (7) and certainty, cannot (8) their own or other people’s likes or dislikes or to popular ideas about the fitness of things. What scientists discover may shock or (9) people-as did Darwin’s theory of evolution. But even an unpleasant truth is (10) than likely to be useful; besides, we have the choice of refusing to believe it! But (11) so with technology; we do not have the choice of refusing to hear the sound produced by a supersonic aircraft flying overhead; we cannot refuse to breathe polluted air. (12) science, progress in technology must be measured (13) the human factor. The purpose of technology is to serve people—people (14) , not merely some people; and future generations, not merely those who presently wish to (15) advantage for themselves.

We are all familiar with the (16) use of technology. Many people blame technology itself (17) widespread pollution, resource depletion (枯竭) and even social decay in general—so much (18) the promise of technology is " (19) " That promise is a cleaner and healthier world. If wise applications of science and technology do not (20) a better world, what else will

1()

A.abstract

B.theoretical

C.profound

D.concrete