问题 单项选择题

单击命令按钮时,下列程度段的执行结果为( )。
Private Sub Command1_Click()
Dim a As Integer, b As Integer, c As Integer
a=2:b=4:c=6
Call S1(a, B)
Print "a="; a; "b="; b; "c="; c
Call S2(a, B)
Print "a ="; a; "b ="; b; "c="; c;
End Sub
Private Sub S1(x As Integer, y As Integer)
Dim c As Integer
x=2*x:y=y+2:c=x+y
End Sub
Sub S2(x As Integer, ByVal y As Integer)
Dim e As Integer
x=2*x:y=y+2:c=x+y
End Sub

A.a=4 b=6 e=6
a=4 b=6 e=6

B.a=8 b=6 c=6
a=8 b=6 c=6

C.a=4 b=6 e=6
a=8 b=6 e=6

D.a=8 b=6 c=6
a=4 b=6 c=6

答案

参考答案:C

解析: 在定义子过程的参数时,如果在参数前加上ByVal,表示是“传值”参数,主调函数中参数的值不被改变,否则表示是“传地址”参数,参数值会被调用的子过程改变。
题中S1过程的参数是“传地址”,因此调用后a、b、c的值都改变了,分别为4、6、6; S2过程的参数中a是“传地址”参数,b是“传值”参数,因此调用后a值改变,b值不变,因为c是过程变量,所以也没有变化,因此输出的值为8、6、6。

阅读理解

根据短文内容,选择最佳答案。

What is your favorite English letter? Many of you may say QQ. Why? Because so many of you chat with your friends on QQ. What do you like about QQ? What do you talk about? The CCTV reporter, Miss Wang, interviews three kids. Let’s listen to what they say.

When do you chat on QQ? What do you talk about?

Lin Yuhan, Xi’an: On weekends. We talk about homework and chat with each other.

Tang Xuting, Shanghai: At weekends and when I don’t have much homework. We exchange test answers and chat.

Yang Yuhang, Dalian: Our class goes online together at 4-6 pm on weekends. We complain about homework, chat and talk about computer games.

What do you put on your QQ blog (博客)?

Lin: I put good articles I have found online on my blog. I also write articles myself. They are about funny things that have happened in my class.

Tang: I put pictures on my blog. Not my own photos, but pictures from my favorite Japanese cartoons (动画片) like Tennis Prince and Conan.

Yang: I put DV films on my blog. I shoot (拍摄) them during sports meetings and school parties. The most popular one is about a dancing teacher. It is so funny that everyone watches it.

How do you like QQ?

Lin: It’s a good space for us to make a record of our lives, of both good times and sad times.

Tang: My friends and I may not have time to chat at school. But we can do it on QQ. It’s very helpful to our friendships.

Yang: If you chat with friends on the telephone, your parents sometimes listen in on your conversation. There’s no such problem with QQ. You can relax and talk freely.

小题1:How many kids are interviewed about QQ?

A.Nine.

B.Six.

C.Three.

D.Two.小题2:________ comes from Shanghai.

A.Miss Wang

B.Lin Yuhan

C.Yang Yuhang

D.Tang Xuting小题3:What does Yang Yuhang talk about on QQ on weekends?

① homework    ② chat        ③ test answers ④ computer games

A.①②

B.②③

C.①②④

D.②③④小题4:What does Lin Yuhan put on her QQ blog?

A.Some pictures.

B.Good articles.

C.DV films.

D.Japanese cartoons.小题5:Which one is TRUE according to this article?

A.Lin says QQ is very helpful to their friendships.

B.Yang says he can chat freely with many friends and relax on QQ.

C.Tang says QQ is a good space for them to make a record of their lives.

D.Tang says he chats on QQ on weekdays though he has lots of homework.

问答题 简答题