问题 单项选择题

Sub过程与Function过程最根本的区别是

A.Sub过程的过程名不能返回值,而Function过程能通过过程名返回值

B.Sub过程可以使用Call语句或直接使用过程名调用,而Function过程不可以

C.两种过程参数的传递方式不同

D.Function过程可以有参数,Sub过程不可以

答案

参考答案:A

解析: 本题考查的是过程的概念。过程是模块的单元组成,过程分两种类型:Sub子过程和Function函数过程。VBA提供的关键字Call,可显示调用一个子过程(Sub过程),但却不能调用执行函数过程(Function过程),此外,Sub过程和Funetion过程都可以直接引用过程名来调用,因此,选项B错误。Sub过程可以使用参数(由调用过程传递的常数、变量或表达式),所以选项D错误。选项C要视具体情况才能确定。Sub过程执行操作但不返回值,Function过程可以返回值,这也是过程最根本的区别。

单项选择题

The conception of God and nature and of the relation of man to both provided the 18th- century philosophers with their faith in the worth and dignity of the individual man and the efficacy of human reason. The 18th century was the moment in history when men experienced the first flush and freshness of the idea that man is master of his own fate; the moment in history, also, when this emancipating idea, not yet brought to the harsh test of experience, could be accepted with unclouded optimism.
Never had the nature seemed less mysterious, more simply constructed, more open and visible and eager to yield its secrets to common-sense questions. Never had the nature of man seemed less perverse, or the intelligence and will of men more pliable (yielding) to rational persuasion. Never had social and political evils seemed so wholly the result of ignorance and superstition, or so easily corrected by the spread of knowledge and the construction of social institutions on a rational plan.
The first task of political science was to discover the natural rights of man, the second to devise the form of government best suited to secure them. And for accomplishing this high task, for creating and maintaining a society founded on justice and equality, the essential freedom was freedom of the mind.

According to the last sentence of the first paragraph, ______ is true concerning "this emancipating idea".

A.the idea was yet to be tested through trials and errors of many

B.it was accepted with an optimism that has been cast with doubt

C.the people of the 18th century accepted it with great optimism

D.the people of the 18th century knew it from their own experience

问答题