问题 单项选择题

在窗体上画一个命令按钮,名称为Command1。然后编写如下程序:
Private Sub Command1_Click()
Dim a As Integer,b As Integer,c As Integer
If a=0 Then
x=x-1
Else
If b<>0 Then
End If
End If
If c<>0 Then
x=3
Else
x=4
End If
Print x
End Sub
程序运行后,单击命令按钮,其输出结果为 ______。

A.34

B.4

C.35

D.3

答案

参考答案:B

解析: 本题先定义了三个变量a、b和c,由于没有给它们赋值,因此他们的值都为0。接着执行后面的If语句,条件“a=0”为True,执行“x=x-1”后x的值为-1。接着执行第二个If语句,判断条件“c<>0”为False,执行Else后面的语句后x的值为4。所以最后输出x的值为4。

阅读理解

阅读理解。

                                                               Customs on Eating

      Food in China and western countries is different. China has about 5,000 years' history. They may spend

half of their time on food. Chinese people choose food very carefully. They only use fresh materials (新鲜的材料) to make food. For example, they only eat fresh fish. Chinese have a lot of ideas for cooking. They can

cook a chicken in over ten ways. That's why Chinese food is so popular around the world. Western countries,

like England or America, don't have fresh food because they buy their food from supermarkets which only sell

stored materials (储存的材料). Western people also prefer fast food like hamburgers and chips. They are

unhealthy for man's body. Western people do not have many skills for cooking, mostly they only boil, steam

(蒸) and bake the food. By the way, western people are very good at making desserts and chocolate. They

can make very good cakes and chocolate. These food are very sweet and they can make you become fat

quickly.

     In China, the person who invites other people for meal would pay for the meal, but it's not the same way

in western countries. In western countries, people will think you only invite them but don't need to pay for

them. They can afford it. They won't be happy if you pay for them. In western countries like America or

England, people will always give tips (小费) to the waiter after they finish the meal in a restaurant. If you don't,

the waiter will not be happy. In China this only happens in some top restaurants and hotels in large cities like

Beijing, Shanghai and Guangzhou.

     Another difference in eating is that: Chinese people use chopsticks and western people use knives and

forks.   

     Chinese people only have three meals during a day. But western people may have more. They usually have

afternoon tea when they would have fruit, cakes or biscuits with cheese (奶酪饼干).

1. Do Chinese people use fresh materials or stored materials to make food? 

    _________________________________________________________________________

2. Why is Chinese food so popular in the world?

    _________________________________________________________________________

3. What kinds of foods are western people good at making?

    _________________________________________________________________________

4. Will western people be happy if you pay for them?

    _________________________________________________________________________

5. How many meals do Chinese people have during a day? 

    _________________________________________________________________________

问答题