问题 单项选择题

在窗体上画一个名称为Command1的命令按钮和两个名称分别为Text1、Text2的文本框,然后编写如下事件过程:
PrivateSubCommand1_Click()
n=Text1.Text
Select Case n
Case 1 To 20
x=10
Case 2,4,6
x=20
Case Is<10
x=30
Case 10
x=40
End Select
Text2.Text=x
End Sub
程序运行后,如果在文本框Text1中输入10,然后单击命令按钮,则在Text2中显示的内容是______。

A.10

B.20

C.30

D.40

答案

参考答案:A

解析:[评析] Select Case执行时,首先计算Select Case语句中的测试表达式的值,然后从第一个Case开始找满足该值的Case语句,遇到第一个表达式列表值与测试表达式相匹配的Case语句,则执行其后的语句序列,然后跳出Select Case结构。而本题第一个语句就满足条件,所以执行第一条语句,结果为x=10。

单项选择题
完形填空
阅读下列短文,根据短文内容填写表格 (每空限填一词)。
How to beat sadness
We all have days when we are down, tired and unhappy. That’s OK. You need days like this, or how would you know you are happy? You’ll enjoy your good days even more when you have a few bad days. Even if sadness is a part of life, let’s try to make it small. Here are a few simple ways to help you feel better when you are feeling sad.
1. Stand up straight and this helps your energy flow (流动). When your energy is flowing freely, you can flow too.
2. Smile! It’s easy to do and have good results. This way can not only leave you in a good mood but also bring others a good mood.
3. Listen to music. It can be your favourite music. Some kinds of music work better than others, so try and find out what kind of music works the best for you.
4. Take some “me” time. You can find pleasure in reading a book, watching a sunrise or having a hot bath, or something like that.
5. Exercise. Even something as simple as taking a walk will get your blood flowing. It is a great way to clear your mind of anything that makes you sad.
These ways will cheer you up when you are down, but don’t just use them when you are sad. Try and practice them every day to make them a habit. You will be surprised to learn that these simple ways will keep your sadness away. But if you are in a deep depression (沮丧), go to see a doctor.
Title: How to beat sadness
Opinions
● It is OK to feel down, 76.    ▲   and unhappy.
● It is possible to make sadness a small 77.    ▲   of life.
 
Simple 78.    ▲  
to cheer you up
● Stand up straight so that your 79.    ▲   can flow freely.
● 80.    ▲   at others because it can bring you and others a good mood.
● Listen to your 81.    ▲   music because it works the best.
● 82.    ▲   pleasure in everyday life, such as watching a sunrise.
● Takea walk and you can clear your 83.    ▲   of sad things.
Suggestions
● Try to make these simple ways a 84.    ▲  .
● Go to see a 85.    ▲  when you are in a deep depression.