问题 填空题

设有如下程序: Private Sub Form_Click() Cls a$="ABCDFG" For i=1 To 6 Print Tab(12-i); 【9】 Next i End Sub 程序运行后,单击窗体,结果如图所示,请填空。

答案

参考答案:Right(a$,i)或Mid(a$,G-i)或Right$(a$,i)或Mid$(a$,G-i)或Right$(a,i)或Mid$(a,G-i)或Right(a,i)或Mid(a,G-i)

解析:[知识点] 取字符函数[评析] Mid$(字符串,p,n):从第p个字符开始,向后截取n个字符。Mid函数的第三个自变量可以省略。在这种情况下,将从第二个自变量指定的位置向后截取到字符串的末尾。Right(字符串):返回“字符串”的最后n个字符。Tab函数格式为:Tab(n),功能是把光标移到由参数n指定的位置,从这个位置开始输出信息。当用Print输出多个表达式或字符串时,各表达式用分隔符(逗号、分号或空格)隔开。如果输出的各表达式之间用逗号分隔,则按标准输出格式(分区输出格式)显示数据项。在这种情况下,以14个字符位置为单位把一个输出行分为若干区段,逗号后面的表达式在下一个区段输出。如果各输出项之间用分号或空格作分隔符,则按紧凑输出格式输出数据。在一般情况下,每执行一个Print方法要自动换行,也就是说,后面执行Print时将在新的一行上显示信息,所以输出第一行后,再次输出时会自动换行。本题中For循环控制输出的内容,循环控制变量从1到6变化,步长为1,每执行一次循环变量的值加1,循环共执行6次。Tab函数用来控制输出的格式。题目要求第一行输出字符“G”,第二行再输出字符串“FG”,以此类推,从右面取出字符,并且字符随着行的变化依次增加,所以可以通过变量i控制取哪些字符,可以用取中间字符函数或取右边字符函数来控制输出的内容,第一次输出的是第6个字符,第二次分别输出的是第五、第六个字符……,因此可以总结出一般的规律,即可以用字串长度加1减去当前循环变量的值来控制输出的字符,或者直接用循环变量来控制输出的字符,因此可以填写Mid(a,7-i)或Right(a,i),分别依次输出“G”、“FG”、“DFG”……。

单项选择题
单项选择题

Beyond question, Clinton was supposed to close up, stay out of sight, and avoid second- guessing his wife’s boss. After his ego blustered into oncoming traffic during Hillary’s heated primary race (1) Obama, the nation suffered from yet another turn of Clinton fatigue.

(2) this week Bill Clinton showed an instinct for robust, inclusive leadership that the (3) White House occupant could make good use of right for the time being. With President Obama struggling to (4) the political damage from the Gulf oil spill, Clinton not only can’t help himself—he’s worth being listened.

The conventional-wisdom (5) on President Obama’s early reaction to the spill was (6) he didn’t emote enough. He didn’t feel the (7) of all those people in the crisis whose livelihood would be destroyed, whose clean waters and wildlife would be (8) in black gunk.

Clinton considers this is an unfair (9) but offers a different—and more pointed— lesson to his young successor. "I think we ought to (10) in the same boat for a while... Let’s just (11) the problem, and then we can hold everybody responsible and emote or not emote, " Clinton conversed (12) CNN Anchor Wolf Blitzer.

Obama’s first (13) after the oil spill was to "feel the blame" rather than "feel the pain, " which are pretty sarcastic words as it were. No one intends to let British Petroleum (BP) management (14) the hook—for dangerously cutting corners, and for a (15) safety record. However, the President’s (16) focus on scolding BP consumed (17) White House energy while the oil gushed.

Great leaders don’t rush to criticise; Instead they instinctively (18) solutions. Rudy Giuliani, who didn’t stop to blame (19) intelligence for letting it happen, stood out from New York mayor with a girlfriend problem to 9/11 hero when he took control of a crisis and instilled confidence that a ravaged city could (20) beyond a terrorist attack.

7()

A.pressure

B.pain

C.shock

D.fear