题目内容

在运行阶段,要在文本框Textl获得焦点时选中文本框中所有内容,对应的事件过程是

A. Private Sub Text1_GotFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub
B. Private Sub Text1_LostFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub
C. Private Sub Text1_Change() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub
D. Private Sub Text1_SetFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub

查看答案
更多问题

窗体上有Text1、Text2两个文本框及一个命令按钮Command1,编写下列程序
Dim y As Integer
Private Sub Command1_Click()
Dim x As Integer
x=2
Text1.Text=Fun2(Funl(x),y)
Text2.Text=Funl(x)
End Sub
Private Function Funl(x As Integer) As Integer
x=x+y ∶y=x+y
Funl=x+y
End Function
Private Function Fun2(x As Integer,y As Integer) As Integer
Fun2=2*x+y
End Function
当单击1次和单击2次命令按钮后,文本框Text1和Text2内的值分别是

A. 2 4 2 4
B. 2 4 4 8
C. 10 10 58 58
D. 4 4 8 8

The Sacrifice at Masada
One discovery always leads to another. Archaeologists working near the Dead Sea became curious about a steep rock near Qumran. At the top of this rock are the ruins of the great palace and fort of Masada. In 1963 a man began careful exploration of this forbidding place. Yigael Yadin was both soldier and archaeologist, and he and his father had both been studying the Dead Sea Scrolls. Yadin was anxious to explore the history of the great palace of Masada.
It was a huge palace. He knew that hundreds of workers were going to be needed for digging there, so Yadin extended an invitation to young men and women from all over the world to join him in digging at Masada. For two summers hundreds of young people came. Masada is not a pleasant place in mid-summer; the mountains are hot and brown and dry. There was no protection for the workers except in camp huts. Yet each year hundreds came to help.
Why? What was the particular interest of this place? Why was there any excitement about this lonely ruin?
Masada had been the scene of great events and acts of courage. The story was famous, but many people had doubts about its truth. Now Yadin and his young workers were digging in order to prove it was true.
Masada had once been the palace of King Herod who ruled Palestine under the Romans during the life of Christ. He had had this palace built far from the city. It was lonely and it was safe, hanging over the steepest part of the rock. The palace was fixed to the actual sides of the rock at three levels. Nowadays men would not dare to build in such a place; yet Herod gave orders tot his servants to build it there. They did the work with their own hands and simple tools. They made it beautiful with wall paintings and fountains and fine stone floors. Water was brought from a great distance to this waterless mountain, and on the upper level there were beautiful fountains and gardens and baths. Inside their palace Herod and his family were comfortable and safe.
Earthquakes have since destroyed a lot of the palace, but the main walls are still standing. Young workers have cleared some of the ruins so we can see how beautiful they were. The workers were tied together with ropes and let down over the cliffs as they worked. Digging in those ruins the young people were sharing the dangers of the men who first built the palace.
After Herod's death the palace became a fort for the Jewish rebels fighting for their freedom from Rome. But the Romans were too powerful. They had already attacked Jerusalem and the great temple had gone up in flames. They had destroyed the monastery at Qumran. Its priests had escaped to the mountains with their scrolls and treasure. In the year A. D. 73 the Roman army arrived at Masada. Orders had been given to destroy the fort and everyone inside it.
There were nine hundred and sixty men, women and children defending the fort, and the Romans were determined that nobody should escape. They built a wall all round the hill. There were eight camps for guarding every corner. The water pipes going into the fort were cut, and the fountains and the baths in Herod's palace ran dry. Soon the drinking water was finished.
Then the Romans began building a great bank of earth against the side of the hill at Masada; soon the height of the bank reached the height of the wails of the fort. They then shot burning arrows into the fort and set fire to the buildings inside. As the wooden walls went up in flames and the arrows shot through the air, the defenders were driven back into the fort inside.
It was clear that the Romans were going to win. The Jews had no hope of keeping their freedom, and were facing certain death.
But the Jews were determined to die as free men, preferring to kill themselves while they were still free. They would not wait for the Rom

A. these people considered it holily
B. the palace of Masada was huge and the work was difficult
C. it would influence more people
D. the task was sponsored by them

在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程。
Private Sub Command1_Click()
CommonDialog1.Flags=vbOFNHideReadOnly
CommonDialog1.Filter= "All Files(*.*) |*.*|Text Files(*.txt) |*.txt
CommonDialog1.FilterIndex=1
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是

All Files(*.*)
B. Text Files(*.txt)
C. *.txt
D. All Files(*.*) |Text Files(*.*)

Hundreds of young people joined in digging at Masada because______.

A. they were highly paid
B. they were pure followers of the belief
C. they wanted to prove the story was true
D. they respected Yadin very much

答案查题题库