问题 填空题

下面程序是由鼠标事件在窗体上画图,如果按下鼠标将可以画图,双击窗体可以清除所画图形。补充完整下面的程序。  首先在窗体层定义如下变量:  Dim PaintStart As Boolean  编写如下事件过程:  Private Sub Form_Load()    DrawWidth=2    ForeColor=vbGreen  End Sub  Private Sub Form_MouseDown(Button As Integer,Shift As Integer,_           X As Single,Y As Single)    【 】   End Sub  Private Sub Form_MouseMove(Button As Integer,Shift As Integer,_           X As Single,Y As Single)    If PaintStart Then    PSet(X,Y)   End If  End Sub  Private Sub Form_MouseUp(Button As Integer,Shift As Integer,_          X As Single,Y As Single)   【 】   End Sub  Private Sub Form_Db1Click()   【 】   End Sub

答案

参考答案:PaintStart=True

解析:上述过程定义了一个布尔型变量PaintStart,当按下鼠标左键(触发MouseDown事件)时,由题意按下鼠标键表示能画图,所以该变量的值为True,而松开鼠标左键(触发MouseUp事件)时,该变量为False;如果变量PaintStart为True,则移动鼠标(触发 MouseMove事件),将在窗体上绘出一个点;除鼠标事件外,上述程序还含有一个Load事件过程和一个DblClick事件过程,其中Load事件过程用来设置画点的大小和颜色, DblClick事件过程用来清除所画的图形,函数Pset是画点语句,用它可以在(x,y)处画一个点。

阅读理解

阅读理解。

     When you finish high school or university, is learning done? The answer is "no". In many countries,

people continue learning all their lives.

      Why is lifelong learning important? How can it help you? Let's look at one example of lifelong learning

in Japan. Why is lifelong learning important?

      You go to school and learn. You take tests. But learning doesn't only happen in school. And learning

doesn't stop when you graduate from high school or college. You are learning all the time. For example,

learning can happen when you go to a museum. It can also happen when you get a job. You learn when

you play a sport or when you take a trip. Learning is life! We never stop learning. Every day, you can

improve yourself by learning something new.

       Lifelong learning in Japan

       In Japan, life learning is very important. People in Japan like to try new learning activities. Music

calligraphy, flower arranging, and foreign languages are some of their favorite classes. The Japanese take

classes to improve their skills and learn new things.

       Conclusion

       When we graduate from school, we can continue to learn. Make lifelong learning one of your goals!

1. Why is lifelong learning important? 

A. It helps you improve yourself.

B. It's the best way to learn.

C. It's fun and easy.

D. It's an important goal.

2. Some people in Japan take foreign language classes to  _____.

A. get a job

B. learn new things

C. get good grades

D. finish college

3. Which of the following is TRUE according to the passage? 

A. Learning only happens in school.

B. When we graduate from school, learning is done.

C. You can't learn anything when you play a sport.

D. Music, calligraphy, flower arranging and foreign languages are popular classes in Japan.

4. What is the main idea of the reading?

A. Learning can be fun.

B. We are always learning in school.

C. Finishing high school is important.

D. People can learn all their lives.

单项选择题 A1型题