问题 单项选择题

要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是
A)Private Sub P1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print X,Y
End Sub
B)Private Sub P1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picture.Print X,Y
End Sub
C)Private Sub P1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
P1.Print X,Y
End Sub
D)Private Sub Form_MouseMove(Button As Integer,Shift As Integer,x As Single,Y As Single)
P1.Print X,Y
End Sub

答案

参考答案:C

解析: 鼠标在图片框中移动,对象应为图片框控件,而不是窗体,选项D)是错误的;鼠标移动触发的是MouseMove事件,选项B)是错误的;在图片框内显示坐标,Print的对象名为图片框,如果没有对象名,则默认输出到窗体上,所以正确的答案为C)。

阅读理解

阅读短文,回答问题。

        If you are a member of a social networking (社交的) website such as QQ, Kaixin, MySpace or Facebook,

you can add a new friend by sending someone a friend request (请求). If you later fall out with that person,

what do you do? You can hit the "unfriend" button (操作框) and remove (移走) him or her from your friend list. That means you won't talk, exchange information, or see each other's updates (更新) on the website any more.

       That is a quick way to solve problems, isn't it? In fact, "unfriend" is often used on social networking

websites. It has become so popular that Oxford University Press recently chose it as the 2009 word of the year.

       Experts at Oxford University Press look at how the words of the English language change from year to

year. They choose words that are popular and have important cultural meanings. 

       Christine Lindberg, editor for Oxford's dictionary program, said the word "unfriend" is popular now and

may stay popular for a long time. People understand its meaning in the online social networking context

(上下文), and also accept it as a modern verb. So it makes an interesting choice for the Word of the Year. 

       How to use the word? You can say "I decided to unfriend my roommate on Facebook after we had a fight"

or "I unfriended Alice on MySpace when she said something bad to me."

1. How many social networking websites are mentioned? [ ]

A. Two.

B. Three.

C. Four.

D. Five.

2. You can add a new friend by ______. [ ]

A. calling the person on the phone

B. meeting the person face to face

C. inviting the person to dinner

D. sending the person a message

3. If you hit the "unfriend" button, you can ______. [ ]

A. remove a person from your friend list

B. share information with a person

C. send a person a friend request

D. send messages to a person

4. The phrase "fall out with" probably means ______. [ ]

A. break up with

B. get on well with

C. make friends with

D. fall in love with

5. "Unfriend" was chosen as the 2009 word of the year because of the following EXCEPT_______. [ ]

A. it is widely used on the web

B. it has important cultural meanings

C. it is a good way to solve problems between friends

D. it is understood and accepted by many people

多项选择题