问题 单项选择题

假定有如下的Sub过程:
Sub S(x As Single,y As Single)
t=x
x=t/y
y=t Mod y
End Sub
在窗体上厕一个命令按钮,然后编写如下事件过程:
Private Sub Commandl_Click()
Dim a As Single
Dim b As Single
a=5
b=4
S(a,b)
Print a,b
End Sub
程序运行后,单击命令按钮,输出结果为( )

A.5 4
B.1 1
C.1.25 4
D.1.25 1

答案

参考答案:D

解析: 本题定义了一个函数Sub,默认为地址传递参数,首先对第一个参数进行除操作,第二个进行取余操作,调用后变量改变。结果为选项D。

完形填空
The little boy entered the house unhappily. His mother was  1 cakes in the kitchen. She smiled as she  2 ,but stopped when she saw his face.“Tyler,  3 happened? Is everything okay?”
“Nothing is okay,Mom,” said the boy.” Today, in our science lesson, Mrs Green talked about the 4 .The whole world is getting dirtier and many animals and plants are dying, She wants us to think of something we can do to help. I thought all the way home, but there is  5 I can do to make a difference.”
“Let me tell you a  6 ,”the mother said after thinking  for a while .“ One morning a man was walking down a beach, there he saw thousands of dying starfish(海星) covering the beach, they were pushed up by the   7 . and it was too far for them to make their way back by  8 . The man shook his head as he walked along,“What a pity!So many starfish will die on the beach.” The man felt very  9 for those starfish . He went on walking and just at that time he was  10 to find a boy in front who was throwing the starfish back into the sea as  11 as he could. “How silly you are! My  12 ,” the man said.“There are so many starfish, and can you throw all of them back?” The boy didn’t stop but kept throwing. “  13 I can’t help them all, I can make a difference to this one, and this one, and this one,”said the boy.“Thinking for a moment, the man  14 to help return the starfish to their home. He smiled and said to himself, “Sometimes the biggest lesson in life comes from the   15 person.”
小题1:
A.drinkingB.makingC.sellingD.washing
小题2:
A.turned aroundB.turned downC.turned onD.turned off
小题3:
A.whatB.whenC.whereD.why
小题4:
A.airB.landC.waterD.environment
小题5:
A.somethingB.anythingC.everythingD.nothing
小题6:
A.lieB.jokeC.storyD.way
小题7:
A.windB.rainC.wavesD.sands
小题8:
A.himselfB.itselfC.ourselvesD.themselves
小题9:
A.tiredB.sorryC.happyD.excited
小题10:
A.afraidB.surprisedC.sadD.angry
小题11:
A.slowB.fastC.soonD.high
小题12:
A.fatherB.motherC.sonD.daughter
小题13:
A.OrB.SoC.BecauseD.Though
小题14:
A.beganB.continuedC.forgotD.waited
小题15:
A.shortestB.tallestC.smallestD.biggest
单项选择题 共用题干题