问题 单项选择题

在Visual Basic中,要强制用户对所用的变量进行显式声明,这可以在哪里设置

A. “属性”对话框

B. “程序代码”窗口

C. “选项”对话框

D. 对象浏览器

答案

参考答案:C

解析:要强制用户显式声明变量,可以单击“工具”菜单下的“选项”命令,打开“选项”对话框,在“编辑器”选项卡下,选中“要求变量声明”复选框即可。这样在每次新建文件时,Visual Basic将Option Explicit(选择显式)自动添加到全局变量或模块级变量的声明部分,或者也可以在声明部分直接输入这条语句。这样就必须在使用变量前声明,否则将会发生出错信息;属性窗口是用来设置对象属性的;程序代码窗口是用来编辑事件过程的。

单项选择题
完形填空
完形填空 (共 20 小题; 每小题 1.5 分, 满分 30 分)
阅读下面短文,从短文后各题所给的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。
Jerry is a restaurant manager who is always in a good mood and always has something positive to say.
One day I went up to Jerry and asked him, “I don’t get   36 ! You can’t be a __37__ person all of the time. How do you do it?” Jerry replied, “Each morning I wake up and say to myself you have two __38__ today. You can choose to be in a good mood   39  you can choose to be in a bad mood. I choose to be in a good mood. It’s your choice __40__ you live life.”
Several years later, I heard that Jerry did something you are never __41__ to do in the restaurant business…. He __42__ the back door open one morning and was held up at __43__ point by three armed robbers. He was shot by them while trying to fight back. __44__, Jerry was found relatively quickly and __45  to the local trauma(外伤) center. After 18 hours of surgery and weeks of intensive care, Jerry was released   46 
the hospital with fragments of the bullets   47  in his body.
I saw Jerry about six months after the __48  . Jerry told me something happening in the ER( 急诊室). He said, “… the paramedics were great. They kept telling me I was going to be fine. But when they wheeled me into the ER and I saw the   49  on the faces of the doctors and nurses, I got really   50  . In their eyes, I   51  ‘he’s a dead man.’ I knew I needed to take   52  .” “What did you do?’ I asked. “Well, there was a nurse shouting questions at me,” said Jerry. “She asked   53  I was allergic to anything. ‘ Yes’ I replied. The doctors and nurses stopped working as they waited for my reply. I took a deep breath and yelled, ‘BULLETS!’ Over their   54  , I told them, ‘I am choosing to live. Operate on me as if I am alive, not dead’.” Jerry lived thanks to the skill of his doctors, but also because of his amazing attitude. I learned from him that every day we have the choice to live fully.
Attitude,   55  , is everything.
小题1:
A.thatB.thoseC.oneD.it
小题2:
A.braveB.goodC.positiveD.bad
小题3:
A.causesB.choicesC.thingsD.goals
小题4:
A.andB.orC.butD.then
小题5:
A.howB.whatC.thatD.when
小题6:
A.supposedB.expectedC.encouragedD.suggested
小题7:
A.cameB.leftC.brokeD.knocked
小题8:
A.swordB.stickC.arrowD.gun
小题9:
A.HopefullyB.DelightedlyC.LuckilyD.Disappointedly
小题10:
A.pushedB.rushedC.steppedD.followed
小题11:
A.toB.towardsC.fromD.down
小题12:
A.evenB.everC.onceD.still
小题13:
A.troubleB.accidentC.difficultyD.trick
小题14:
A.expressionsB.smilesC.criesD.tears
小题15:
A.attractedB.touchedC.scaredD.warned
小题16:
A.mixB.hopeC.askD.read
小题17:
A.careB.actionC.turnsD.apart
小题18:
A.whatB.thatC.if D.why
小题19:.
A.laughterB.disappointmentC.excitementD.joy
小题20:
A.after allB.at allC.in allD.for all