问题 填空题

在窗体上画 1 个命令按钮和 1 个文本框,其名称分别为 Command1 和 Text1,然后编 写如下代码:Dim SaveAll As StringPrivate Sub Command1_Click() Text1.Text = Left(UCase(SaveAll), 4) End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) SaveAll = SaveAll + Chr(KeyAscii)End Sub 程序运行后,在文本框中输入abcdefg,单击命令按钮,则文本框中显示的内容是 _________。( 10 )在窗 体上画 1 个命令按钮 和 1 个通用对话框, 其名称分别 为 Command1 和CommonDialog1,然后编写如下事件过程:Private Sub Command1_Click()CommonDialog1. _________ = "打开文件"" CommonDialog1.Filter = "All Files(*.*)|*.*" CommonDialog1.InitDir = "C:\" CommonDialog1.ShowOpenEnd Sub 该程序的功能是,程序运行后,单击命令按钮,将显示"打开"文件对话框,其标题是" 打开文件",在"文件类型"栏内显示"All Files(*.*)",并显示C盘根目录下的所有文件, 请填空。

答案

参考答案:ABCD

解析:每在 Text1 中输入一个字符,都将触发一次 KeyPress 事件,该事件的作用是将当前所输入的字符连 接到字符串 SaveAll 的后面。故字符输入结束后,SaveAll 中的内容为”abcdefg”,Ucase 函数是将字符串所 有的字母都转换成大写字符,执行 Ucase(SaveAll)的结果为”ABCDEFG”,Left(S,4)是取字符串 S 的前四个 字符,作为一个字符串返回。故 Left(Ucase(SaveAll),4)=Left(”ABCDEFG”,4)=”ABCD”。本空填:ABCD。

阅读理解

A

Several years ago,a television reporter was talking to three of the most important people in America. One was a very rich banker,another owned one of the largest companies in the world,and the third owned many buildings in the center of New York.

The reporter was talking to them about being important. “How do we know if someone is really important?” the reporter asked the banker.

The banker thought for a few moments and then said, “I think anybody who is invited to the White House to meet the President of the United States is really important. ”

The reporter then turned to the owner of the very large company. “Do you agree with that?” she asked.

The man shook his head, “No. I think the President invites a lot of people to the White House. You‘d only be important if while you were visiting the President, there was a telephone call from the president of another country,and the President of the US said he was too busy to answer it. ”

The reporter turned to the third man. “Do you think so?”

“No, I don‘t,” he said. “I don’t think that makes the visitor important. That makes the President important. ”

“Then what would make the visitor important?” the reporter and the other two men asked.

“Oh, I think if the visitor to the White House was talking to the President and the phone rang, and the President picked up the receiver, listened and then said, ‘It’s for you. ‘ ”

小题1:This story happened in _______.

A.England

B.America

C.Japan

D.Australia小题2:There are _______ in this passage.

A.three men and one woman

B.two men and two women

C.three women and one man

D.four women小题3:The following is true EXCEPT_________.

A.The banker thought any visitor to the White House was really important.

B.The owner of the very large company thought the visitor would be important if while he was visiting the President, the President would not answer any telephone call

C.The owner of many buildings thoughtthe visitor was really important if he was talking to the President and the President received a telephone call for the visitor.

D.the reporter knew the way to find out who was the most important.

问答题 简答题