问题 填空题

如图所示,在列表框List1中已经有若干人的简单信息,运行时在Text1文本框(即“查 找对象”右边的文本框)输入一个姓或姓名,单击“查找”按钮,则在列表框中进行查 找,若找到,则把该人的信息显示在Text2文本框中。若有多个匹配的列表项,则只显 示第1个匹配项;若未找到,则在Text2中显示“查无此人”。请填空。

Private Sub Command1_Click()Dim k As Integer, n As Integer, found As Boolean found = Falsen = Len( _________)k = 0While k < List1.ListCount And Not foundIf Text1 = Left$(List1.List(k), n) ThenText2 = _________found = True End If k = k + 1Wend If Not found ThenText2 = "查无此人" End If End Su

答案

参考答案:TextA , ListA.List(k)

解析:本题是把 Text1 中的内容与 List1 中的项目逐个比较,而比较的时候,是先求出 Text1 中内容的长度,即 n = Len(Text1),再从 List1 的项目中取出相同长度的内容与 Text1 的值进 行比较,如果找到,则把项目显示到 Text2 中,即 Text2 = List1.List(k)。

完形填空
It's a small gas station that has snacks, drinks, cigarettes, and candies. The young man behind the counter knows his   __36__   by name and what they normally want to buy. He treats children and adults with equal   __37__. He reads science fiction behind the counter when business is   __38__.
One day, three people rushed in and grabbed(抓住) food off the shelves as fast as they could,   __39__   not intending to pay for it. He hit the “panic button” , then went over the counter(柜台) and   __40__   the front door. It was obvious that they were homeless, and  equally obvious that they weren't going   __41__   with their ill­gotten(非法获得的) gains. They    __42__   the food and simply crowded together in panic(惊慌地)—knowing the police were   __43__   the way.
Imagine what they must have felt like when they were told they didn't have to steal if they were that    __44__. “We have food in the back, expired (到期)but still   __45__   to eat. If you need food, you   __46__   have some.” 
They were told to   __47__   what they had dropped and put it back, and then asked to straighten out(清理) the mess. They were doing just that    __48__    the police arrived. The officers were told the situation was under control and the police were no longer   __49__.
This wasn't what they had    __50__. They were being treated as human beings who could right the wrong they'd done. Shocked, they quickly followed orders to take turns and use the restroom to clean up.
Soon three   __51__   people walked out with all the    __52__   their arms could hold. They were   __53__   that,if they needed to come back again, they were to ask and not just grab.
And then the young man went back to read until the next customer came in. He would be the    __54__ person in the world to claim he was a hero. But he gave three people something they were in desperate need of—a   __55__amount of self­respect and a little bit of hope.
小题1:
A.friends  B.neighbors C.customers  D.passengers
小题2:
A.respectB.prideC.wisdomD.satisfaction
小题3:
A.slowB.busyC.heavyD.swift
小题4:
A.bravely B.reasonably C.hardly D.obviously
小题5:
A.openedB.lockedC.closedD.broke
小题6:
A.nowhereB.somewhereC.anywhere  D.everywhere
小题7:
A.hidB.liftedC.ateD.dropped
小题8:A .in          B.on         C.off          D.by
小题9:
A.anxious B.curiousC.courageousD.hungry
小题10:
A.safeB.easyC.sweet D.unique
小题11:
A.mustB.canC.shouldD.need
小题12:
A.hold upB.hand outC.pick up D.hand in
小题13:
A.whenB.afterC.before  D.since
小题14:
A.popularB.necessaryC.reliable  D.important
小题15:
A.wantedB.desiredC.expectedD.admired
小题16:
A.dirtierB.cleanerC.clevererD.quicker
小题17:A .money      B.cigarettes    C.drinks       D.food
小题18:
A.reminded B.warnedC.orderedD.persuaded
小题19:
A.firstB.lastC.best D.worst
小题20:
A.largeB.fairC.small D.full
单项选择题