在窗体上画一个命令按钮,名称为Command1。单击命令按钮时,执行如下事件过程: Private Sub Command1_Click( ) a$="software and hardware" b$=Right(a$,8) c$=Mid(a$,1,8) MsgBox aS,b$,c$,1 End Sub 则在弹出的信息框的标题栏中显示的信息是
A. software and hardware
B. software
C. hardware
D. 1
查看答案
假定有以下函数过程: Function Fun(S As String) As String Dim s1 As String For i=1 To Len(S) s1=UCase(Mid(S,i,1))+s1 Next i Fun=S1 End Function 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click( ) Dim Str1 As String,Str2 As String Str1=Input Box(“请输入一个字符串”) Str2=Fun(Str1) Print Str2 End Sub 程序运行后,单击命令按钮,如果在输入对话框中输入字符串“abcdefg”,则单击“确定”按钮后在窗体上的输出结果为
A. abederg
B. ABCDEFG
C. gfedcba
D. GFEDCBA
When dawn came, they realized that the boat was blocked in ice. The captain (81) asleep but the rest of the crew hurriedly woke him. He took a small axe (斧) and (82) . great care, (83) make a hole in the deck, he began to knock the ice away. From time to time a wave burst over the boat and swept over him but he kept (84) for ten minutes while the others looked on anxiously (85) this time he was (86) cold that he could no longer trust what he was doing. Each member of the crew took it (87) turn to cut the ice away as long as he could (88) it. First, they had to knock off enough ice to get on their (89) . Standing on that rolling deck meant (90) , because a man who had fallen into the sea could not have been rescued. Then the captain discovered that ice was forming inside the cabin (船舱). He called (91) one of the crew and together they managed to get the stove alight, hoping that it would (92) enough heat to warm the cabin above (93) . Unless the ice in the bottom could be melted enough (94) it could be bumped out, they were (95) . It took (96) before the boat began to float better. But for this time they succeeded (97) rid of most of the ice. Throughout the afternoon, the coating of ice began to build up again (98) their work. In the face of this danger, Cap, Slater (99) the crew to clear the ice so that the boat would (100) until the next morning. Then they settled down to wait for another day.
A. so that
B. so as to
C. in order to
D. so as
以下程序的功能是:生成20个200到300之间的随机整数,输出其中能被5整除的数并求出它们的和。请填空。 Private Sub Command1_Click( ) For i=1 To 20 x=Int( 【6】 *100+200) If 【7】 =0 Then Print x S=S+ 【8】 End lf Next i Print"Sum=";S End Sub