问题 单项选择题

下面程序的结果是( )。
i=l
j=0
Do
j=i+1
i=i+1
Loop Until i<5

A.0

B.4

C.1

D.5

答案

参考答案:C

解析: 本题考查Do-Loop循环结构的流程。此段程序先执行j和i的加1操作,得到j=1, i=2。然后进行条件判断,Do-Loop结构若使用 Until关键字,则当条件为False时执行表达式,为Tme时退出循环语句。Loop Until i<5的意思是一直循环,直到i<5为止,现在i=2,已经小于5,因此跳出循环,此时j=1。答案为C。

填空题



Every human being is fallible; we make mistakes. In America when a mistake has been made, it is considered fitting for the person (1) to acknowledge his or her error and to apologize to anyone who has been inconvenienced. Even (2) are expected to admit their mistakes and apologize for them. Trying to (3) a mistake and denying your guilt are considered to be indicative of serious (4) .
If you make a mistake that (5) a group of people, a public apology is considered the best method for (6) . If the mistake was a serious one, or if some people were inconvenienced more than others, then the (7) should follow the public apology with private ones to (8) .
It is especially important for executives and company heads to be able to admit their mistakes. Sometimes leaders are afraid that if they (9) , they will lose the respect of their employees. Actually (10) — if you are honest with your employees and yourself, (11) , and show that you are willing to accept blame when you make a mistake, then your employees will be (12) you. They will also be more likely to admit their own mistakes.
If you (13) one person, it is usually best to apologize to that person alone, unless your mistake (14) by a large group of people. For example, if Leonard (15) to Mr. Todd during a committee meeting, it would be (16) for Leonard to apologize to Mr. Todd at the next committee meeting. If the (17) created by the initial mistake is public, then the apology should be public. However, if Leonard raised his voice to Mr. Todd when only the two of them (18) , he may apologize privately. Notice as well (19) the apologies are. As soon as you realize you have made a mistake, you should (20) .

单项选择题