问题 填空题

在窗体上画一个命令按钮,然后编写如下事件过程:
  Private Sub Command1_Click()
    x=0
    Do Until x=-1
     a=lnputBox("请输入第一个数字a的值")
     a=Val(a)
     b=InputBox("请输入第二个数字b的值")
     b=Val(b)
     x=InputBox("请输入第三个数字x的值")
     x=Val(x)
     a=a+b+x
   Loop
   Print a
End Sub
  在程序运行后,单击命令按钮,在对话框中分别输入5,4,8,5,8,-1,输出结果为 【9】 

答案

参考答案:【9】12

解析:解析:该程序运行后,会出现一个对话框,提示输入a,b,x的值,如果输入的x的值不是-1,则该对话框将反复出现要求输入的提示,直到最后输入的x的值为-1为止,程序最后输出的结果为最后一次循环中输入的a的值与b的值与x的值之和。所以输出结果为5+8-1=12。

阅读理解

三、阅读理解(2分/题,共分30分)

Most dog owners feel that their dogs are their best friends. Almost everyone likes dogs because they try hard to please their owners. One of my favorite stories is about a dog who wanted his owner to please him.

  One of my friends has a large German shepherd ( 牧羊狗) named Jack. Every Sunday afternoon, my friend takes Jack for a walk in the park. Jack likes these long walks very much.

  One Sunday afternoon, a young man came to visit my friend. He stayed a long time, and he talked and talked. Soon it was time for my friend to take Jack for his walk, but the visitor didn’t leave. Jack became very worried about his walk in the park. He walked around the room several times and then sat down directly in front of the visitor and looked at him. But the visitor paid no attention. He continued talking. Finally, Jack couldn’t stand it any longer. He went out of the room and came back a few minutes later. He sat down again in front of the visitor, but this time he held the man’s hat in his mouth.

  German shepherds aren’t the only intelligent dogs. Another intelligent dog is a Seeing Eye dog. This is a special dog which helps blind people walk along the streets and do many other things. We call these dogs Seeing Eye dogs because they are the “eye” of the blind people and they help them to “see”. Seeing Eye dogs generally go to special schools for several years to learn to help blind people.

36. The writer tells the story about the dog Jack to show that____.

  A. it always tried to please its master like many other dogs

  B. it always wanted its master to please it unlike many other dogs

  C. it was more intelligent than many other dogs

  D. it was the most faithful dog of his friend’s

37. Jack came to sit in front of the visitor in order to______.

A. please him     B. be pleased    C. ask him to leave immediately   D. invite him for a walk

38. The underlined sentence “Finally, Jack couldn’t stand it any longer.” Means______.

  A. Jack could no longer put up with the visitor

  B. Jack could no longer stand but he might sit down

  C. Jack was very tired and wanted a rest

  D. Jack was very angry with the owner

39. Seeing the dog holding his hat in its mouth, the visitor would probably______.

A. think the dog was foolish and boring

B. kicked the dog away by himself

C. beat the dog in front of its owner

D. get up and say good-bye to his friend

40. Which of the following titles would be the best for the passage?

A. Dogs─A Great Help to People

B. Dogs ─ Our Faithful Friend

C. An Introduction to Dogs

D. Famous Dogs in Germany

单项选择题