问题 单项选择题

在窗体上画1个名为Text1的文本框和1个名为Label1的标签,再画4个名为Op1的单选按钮控件数组,其Index属性按季度顺序为0~3,如图1所示。在文件Sales.txt中按月份顺序存有某企业某年12个月的销售额。要求在程序执行时,鼠标单击一个单选按钮,则Text1中显示相应季度的销售总额,并把相应的文字显示在标签上。如图 2所示是单击“第二季度”单选按钮所产生的结果。请选择可在空白处填写的合适语句( )。 Option Base 1 Dim sales(12) As Long Private Sub Form_Load() open"c:\sales.txt"For Input As #1 For k=1 To 12 Input #1,sales(k) Next k Close #1 End Sub Private Sub ______ (Index As Integer) Dim sum As Long,k As Integex,month As Integer sum=0 month=Index*______ For k=1 To 3 month=month+1 sum=sum+sales(month) Next k Label1.Caption=______.Caption &"销售总额:" Text1=sum End Sub

A.Op1_Click 3 Op1(Inde

B.Op1_Click 0 Option1(Inde

C.Option1_Cliek 1 Op1(Inde

D.Option1_Click 2 Option1(Inde

答案

参考答案:A

解析: 解本题的关键是读懂题意和程序的作用。Form_Load事件过程的作用是打开文件Sales.txt,读出文件12个月的销售额分别存放在数组sales元素中。然后在单选按钮的单击事件中,进行处理,因为控件数组共享同一个事件过程,所以第1个横线处,应填入单击事件,使用控件的名字Op1加下划线加Click。在单击事件过程中,通过变量month计算月份,分别统计每一个季度的销售总额,结合For循环中month的值:第一季度,month的初值为0,index的值为0;第二季度,month的初值为3,index的值为1;第三季度,month的初值为6,index的值为2;第四季度,month的初值为9,index的值为3;所以第2个横线处应填入3。第3个横线的填写较简单,就是显示选中的单选按钮的标题。

完形填空

Ⅲ.完形填空(共20小题;每小题1分,满分20分)

阅读下面短文,从短文后所给的A、B、C、D四个选项中,选出可以填入空白处的最佳选项,并在答题卡上将该选项涂黑。

Once there were two men, who lived in the same hospital room. One man’s bed was next to the room's only window. ___36__, the other man, since his illness was more  ___37__, had to spend all his time in bed. When the man in the bed by the window could  ___38__ up, he would tell his roommate all the things he could see ___39__ the window. He said the window ___40___ a park with a lovely ___41__. Ducks played on the __42___ while children sailed their model boats. Old trees grew and beautiful flowers were in bloom. What a fine ___43__! The man in the other bed would be  ___44__ by the beautiful colors of the world outside.

Days and weeks passed.

One morning, the day nurse found the man by the window had ___45__ peacefully in his sleep. She called the hospital attendants to take the body ___46__. As everything was done, the other man asked if he could be  ___47__ next to the window.  The nurse said OK and after making sure he was comfortable, she left him ___48__.

Slowly and painfully, he tried to take his _49___ look at the world outside. He thought he would be ___50__ to see it by himself. But to his surprise, he saw nothing but a white ___51__. The man asked the nurse ____52   his roommate ___53__  to him and said there were wonderful things outside this window. The nurse told him his roommate was blind and could not even ___54__  the wall.

She said, "Perhaps he just wanted to ___55__  you. He only hoped you could live in a colorful world and got better quickly. "

36. A. Unluckily      B. Happily        C. Surprisingly   D. Angrily

37. A. common       B. occasional      C. serious        D. light

38. A. stand          B. sit            C. jump         D. wake

39. A. across         B. above          C. behind       D. Outside

40. A. built          B. stood          C. faced         D. placed

41. A. hill           B. lake            C. house        D. tower

42. A. sand          B. grass           C. water         D. tree

43. A. look          B. sight            C. form         D. view

44. A. impressed     B. moved          C. reminded    D. disappointed

45. A. missed        B. died            C. come        D. passed

46. A. up           B. away           C. off           D. on

47. A. moved        B. forced          C. brought       D. lifted

48. A. alike          B. alone          C. aloud         D. alive

49. A. single         B. last            C. first          D. only

50. A. pleased        B. excited         C. crazy         D. sad

51. A. wall           B. picture         C. river        D. Window

52. A. when          B. why         C. how          D. Where

53. A. led           B. got            C. lied          D. left

54. A. hear          B. touch          C. see          D. describe

55. A. please        B. encourage       C. control       D. Advice

单项选择题 B1型题