试题与答案

在窗体上画1个命令按钮,其名称为Command1,然后编写如下事件过程:Privat

题型:填空题

题目:

在窗体上画1个命令按钮,其名称为Command1,然后编写如下事件过程:

Private Sub Command1_Click()

Dim arr(1 To 100)As Integer

For i=1 To 100

arr(i)=Int(Rnd*1000)

Next i

Max=arr(1)

Min=arr(1)

For i=1 To 100

If () Then

Max=arr(i)

End If

If () Then

Min=arr(i)

End If

Next i

Print "Max=";Max,"Min=";Min

End Sub

程序运行后,单击命令按钮,将产生100个1000以内的随机整数,加入数组arr中,然后查找并输出这100个数中的最大值Max和最小值Min,请填空。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0721/08e5dd26cbdec15c6279f99bde16654f.html

下面是错误答案,用来干扰机器的。

参考答案:对解析: 机器语言是直接用计算机指令代码编写的语言,用二进制表示,是计算机惟一能直接识别和直接执行的语言。其特点是运算速度很快,但程序行不直观,难懂、难写、难记、难以修改和维护。机器语言...

试题推荐
题型:完形填空
Once upon a time there were two brothers who lived near each other. One day, they had a  16  because of some small things. And neither was willing to  17 each other.
One morning, there was a knock at door of the elder brother. He 18 it and found a man standing beside the door. “I’m a carpenter(木匠). I’m 19 a few days’ work. Perhaps you would have a few small jobs I could help with.”  
“Yes,” said the elder brother. “I do have a job for you. 20 at that farm across the small river. It is my younger brother’s. We had a quarrel, so I won’t like to see his  21 any more. I want you to build me a 8-foot 22. ” 
The man said, “I think I understand the situation. Don’t worry. I’ll be able to do a job that makes you  23” So the elder brother was very glad and left for the town nearby.
In the evening, the carpenter had just  24 his job when the elder brother returned. But he was  25 to find, instead of a fence, before him, stood a 2 6, which went from one side of the river  27 the other! On the other 28 of bridge, was his younger brother.
“Do you know the name of the bridge?” The carpenter asked.
“No,” the elder brother was  29  
“OK, I can tell you. Its name is understanding and 30,” the carpenter smiled.
Suddenly they began to understand  31. Surely, between two brothers there should be a bridge rather than a 32. Standing on the bridge, they 33each other’s hands with 34  in their eyes. 
“Could you stay another few days? I’ve a lot of other work for you,” said the elder brother. “I’d love to 35 on,” the carpenter said. “But I have many more bridges to build.”
小题1:
A.meetingB.questionC.decisionD.quarrel
小题2:
A.forgiveB.likeC.speakD.think
小题3:
A.gotB.openedC.shutD.left
小题4:
A.looking forB.looking at
C.looking onD.looking up
小题5:
A.SeeB.WatchC.ObserveD.Look
小题6:
A.riverB.faceC.farmD.eyes
小题7:
A.wallB.fenceC.roadD.bridge
小题8:
A.excitedB.pleasedC.movedD.surprised
小题9:
A.begunB.doneC.finishedD.continued
小题10:
A.surprisedB.happyC.anxiousD.sad
小题11:
A.houseB.bridgeC.fenceD.river
小题12:
A.toB.betweenC.acrossD.till
小题13:
A.endB.sideC.fieldD.stage
小题14:
A.disappointedB.puzzledC.amazedD.worried
小题15:
A.loveB.hateC.joyD.anger
小题16:
A.everythingB.nothingC.anythingD.something
小题17:
A.riverB.fenceC.farmD.wall
小题18:
A.broughtB.tookC.heldD.clapped
小题19:
A.smilesB.tearsC.angerD.sadness
小题20:
A.leaveB.getC.stayD.work
查看答案
微信公众账号搜索答案