问题 填空题

程序是一个窗体双击事件代码,窗体的名称是Mywindow。窗体上有一个名为Text1的文本框,用来显示文本。
程序段首先在文本框中显示“窗体能够触发双击事件”然后将滚文本清除;重复上述过程5次。
Option Explicit
Private 【12】
Dim k As Integer
For k=1 to 100
If k Mod 20 Then
【13】
Else
Text1.Text=""
End lf
Print“程序运行完毕,可再双击窗体”
End Sub

答案

参考答案:[12]Sub Mywindow_DblClick( )
[13] Text1.text=“窗体可以触发双击事件”

解析: 响应窗体及控制事件的程序代码格式为“Sub窗体或控件名称—事件( )”。本题需要响应Mywindow窗体的双击事件代码。双击事件用DblClick表示,故[12]处填:Sub Mywindow_DblClick( )。
[13] 通过For循环,寻找1至100之间可以被20整除的数,找到了,则执行语句使文本框显示“窗体能够触发双击事件”,故本处应填:Textl.text;“窗体可以触发双击事件”。即把字符串“窗体能够触发双击事件”赋给Text1的text属性。

阅读理解
“Life’s a long, long journey(旅程)” so we are told, and most of us would not set off on a journey, even a short one, without some idea of where we wanted to go. Yet many people travel on life’s journey with no sense of direction at all.
Setting personal goals can give your life a sense of direction. Goal setting is used by top sports players, successful business people and achievers in all fields. Before you set personal goals, think about what you want to achieve with your life.
Try to set goals in some of the following categories.
Education—Will you achieve the educational goals after finishing high-school? Are you still growing and learning?
Family—What kind of relationship(关系)do you want with your parents and other family members?
Creative—Do you want to achieve any artistic goals?
Career—What job do you want to take when you grow up? What do you need to make your dream come true?
Public Service—Do you want to make the world a better place?
Physical—Are you fit enough to do the things you want to do?
Pleasure—How do you want to enjoy yourself?
Write down the goals and think about them carefully. Are they realistic? When will you be able to achieve them?
To help make the process (过程) more manageable, divide your goals into smaller tasks. For example, if you want to reach a main goal in five years, set a three-year goal, a one-year goal, a three-month goal and a one-month goal. Then create a daily To-Do List of things that you should do today. When a goal is achieved, take the time to enjoy your success. This helps you build the self-confidence.
Remember, your goals can change as time goes on. But be sure your goals are things you hope to achieve, not what your parents, family or teachers want.
小题1:Is life a long journey according to the passage?
小题2: Why do you need to set your life goal?
小题3:What should you consider when you set a family goal?
小题4:How can we achieve the main goal easily?
小题5:What does the writer want to tell us?
单项选择题