问题 单项选择题

连续执行以下命令之后,最后一条命令的输出结果是( )。 SET EXACT OFF X="A" IIF(X="A",X-"BCD",X+"BCD")

A.A

B.BCD

C.ABCD

D.ABCD

答案

参考答案:C

解析: 使用单等号(=)运算符比较两个字符串时,运算结果与SET EXACT ON |OFF的设置有关。执行完SETEXACT OFF命令后,只要右边字符串与左边字符串的前面部分内容相匹配,即可得到逻辑真的结果,即字符串的比较因右面的字符串结束而终止。所以题中X="A"的结果为逻辑真。 IIF()是条件测试函数,基本命令格式如下: IIF(<逻辑表达式>,<表达式1>,<表达式2>) 其中,测试<逻辑表达式>的值,若为逻辑真.T.,则返回<表达式1>的值,若为逻辑假(.E.),则返回<表达式2>的值。<表达式1>和<表达式2>的值不要求相同。所以题中IIF函数应返回“X-"BCD"”的值。这里的“-”和“+”都是字符串连接符,“-”将连接前后两个字符串,并将前字符串的尾部空格移到合并后的新字符串尾部,“+”将前后两个字符串首尾连接形成一个新的字符串。

完形填空

第二节:七选五(共5题,每小题2分,满分10分)

The following is a father’s advice to his son\daughter,who has just graduated from high school:

First of all, congratulations on your graduation! Graduation from high school means that a new stage of life is ahead of you. ___71___

Clean your own room and do your own laundry.____72____ Cleanliness is indeed close to godliness(神圣的)

Don’t mistake knowledge for wisdom, No matter how much information or knowledge you have accumulated(积累),you’ll never make sound judgments if you don’t have wisdom.___73___ If you can imagine the possible future outcomes of your present decisions and actions, you can avoid mistakes. And if you can reflect(思考)on the mistakes you have made, you can avoid making the same mistakes again and  again. Such is wisdom.

Don’t complain, When you take up a job, do you best to carry it out. ___74___

Finally,be an early bird, ___75____And the sight of the rising sun will warm your heart and give you energy for the day ahead. Besides, being an early bird, you have plenty of time to take exercise or do a lot of work.

At the beginning of this new stage, I have some advice for you.

If you get up earlier than the sun, you can watch it rise up slowly into the sky

Once you started a job, you should try your best to do it well.

After you have messed up something,you should learn to clean it up yourself.

Don’t waste time complaining about it, no matter how difficult and boring it is.

Get up early and go for some morning exercises to build up your body.

Wisdom comes from imagination and reflection.

单项选择题