问题 单项选择题

在窗体上画一个名称为Command1的命令按钮,再画两个名称分别为Label1、Label2的标签,然后编写如下程序代码: Private X As Integer Private Sub Command1_Click( ) X=5:Y=3 Call proc(X,Y) Label1.Caption=X LabeL2.Caption=Y End Sub Private Sub proc(ByVal a As Integer,ByVal b As Integer) X=a*a Y=b+b End Sub 程序运行后,单击命令按钮,则两个标签中显示的内容分别是

A.5和3

B.25和3

C.25和6

D.5和6

答案

参考答案:B

解析: 由于在Proc过程中,a、b的传送方式都是传值,故在“Command1_ Click( )”事件过程中,变量X、Y的地址未发生变化,但由于调用proc过程后,变量x被赋予了新值a*a,所以在单击命令按钮后,Label1显示为25,Label2没有发生变化,因为Y变量事先未声明,为事件过程变量,在未采用传地址方式下Sub过程中的Y与事件过程中的Y互不干扰。

完形填空

[1]A homeless man who wanders around in the streets of the Bronx singing soft R&B songs has become famous thanks to his talent and YouTube.

[2]James Percell, 49, was discovered by music manager, Kenneth Williams, who decided to help him get off the streets. In one video, Kenneth Williams speaks to the camera and explains ______________.  "I went to the Bronx to visit my family, and I ran into this homeless brother," he says. "His voice is very beautiful."

[3]Mr. Percell has become famous on YouTube, where more than a million people have heard his golden voice, and many producers and filmmakers have already expressed their eagerness to work with him.

[4]Mr. Percell says he has been homeless for a few years and neglects everything for the love of music in an attempt to develop his career, he has cried out for The Voice and the X- Factor singing competitions. But the judges didn’t contact him after they found out that he was homeless.

[5]He now has a MySpace page and Facebook fan page, which are used to share his songs with his fans. He has written many songs, one of which is Everything Must Change, written for Michael Jackson. He hopes that his songs will help the world know his story and life struggle to make it as a singer, and also hopes that social media can give him a fighting chance to finally make his dream come true.

小题1:What has made James Percell famous?(no more than 8 words)

______________________________________________________________________

小题2:Fill in the blank with the appropriate words.(no more than 5 words)

In one video, Kenneth Williams speaks to the camera and explains _______________________________.

小题3:What is the main idea of the third paragraph?(no more than 7 words)

_______________________________________________________________________

小题4:Why did the judges from some singing competitions refuse to contact James Percell?

(no more than 5 words)

_________________________________________________________________________

小题5:What does the word "which" probably refer to?(Line 2, Paragraph 5)

(no more than 6 words)

多项选择题