问题 单项选择题

在窗体上画一个命令按钮,其名称为Command1,然后编写如下程序: Function Func(ByVal x As Integer,y As Integer) y=x*y If y>0 ThenFunc=x ElseFunc=y End If End Function Private Sub Command1_Click() Dim a As Integer,b As Integera=3b=4c=Func(a,B)Print "a="; aPrint "b="; bPrint "c="; c End Sub 程序运行后,单击命令按钮,其输出结果为______。

A.a=3 b=12 c=3

B.a=3 b=4 c=3

C.a=3 b=4 c=12

D.a=13 b=12 c=12

答案

参考答案:A

解析:[评析] 函数Func(3,4)的返回值为3,故c的值为3。由于参数x是按值传递的,a的值仍为3;而参数y是按地址传递的,b的值变为3*4。

完形填空
As a single mother,I had to do two jobs,which kept me very busy.
Two months ago,I went to a ____ with Alice. Since I ____went out with her,she seemed very happy. Many parents were there with their children. I sat down on a bench(长凳),____Alice playing with other children. About half an hour later,a man of about forty years old came and ____beside me. As I had to go back to work,I stood up and told Alice that we had to ____.
“Can I stay here a little longer?”Alice pleaded.
“No,we must go now,”I said,____ Alice just didn’t move.
“Just ten more minutes,”she pleaded(恳求) again,and I became ____.
“Go now,”I____,and Alice started to cry.__ __ that,the man sitting on the ____stood up and came to us.
“Why don’t you just let her____ten more minutes?”he asked. Then he told me a ____.He used to be very busy,too. Every time his little son wanted to go out and play,he told him he was ____.One day,his son went out and played ____,and he didn’t come back again—he was hit by a ____driver of a car. The father regretted what he had done to his son,but he never had the ____to play with him again. Hearing the story,I ____.I knelt down(跪下来)and said to Alice,“OK,ten more minutes,and Mom will play ____you.”
___is all about making priorities(优先).What are your priorities?Give someone you____ten more minutes of your time today.
小题1:
A.parkB.schoolC.seaD.cinema
小题2:
A.sometimesB.oftenC.usuallyD.hardly
小题3:
A.keepingB.hearingC.findingD.watching
小题4:
A.got offB.sat downC.broke inD.turned up
小题5:
A.goB.shopC.changeD.eat
小题6:
A.becauseB.asC.butD.so
小题7:
A.sadB.pleasedC.angryD.excited
小题8:
A.whisperedB.wishedC.beggedD.shouted
小题9:
A.KnowingB.SeeingC.HopingD.Thinking
小题10:
A.groundB.chairC.benchD.stone
小题11:
A.runB.playC.doD.laugh
小题12:
A.storyB.jokeC.wayD.lie
小题13:
A.busyB.lonelyC.boringD.ill
小题14:
A.suddenlyB.aloneC.happilyD.crazily
小题15:
A.blindB.kindC.drunken(喝醉的)D.good
小题16:
A.energyB.interestC.heartD.chance
小题17:
A.stayed upB.took partC.calmed downD.came back
小题18:
A.behindB.withC.forD.under
小题19:
A.ChoiceB.JoyC.WorkD.Life
小题20:
A.appreciate(欣赏)B.dislikeC.admire(钦佩)D.love
单项选择题