下列过程的功能是:通过对象变量返回当前窗体的Recordset属性记录集引用,消息
框中输出记录集的记录(即窗体记录源)个数。
Sub GetRecNum()
Dim rs As Obj ect
Set rs=Me.RecordSet
MsgBox
End Sub
程序空白处应填写的是
A. Count
B. rs.Count
C. RecordCount
D. rs.RecordCount
查看答案
在窗体中有一个命令按钮Commandl,编写事件代码如下:
Private Sub Command1_CliCk()
Dim s As Integer
s=P(1)+P(2)+e(3)+P(4)
debug.Print S
End SUb
Public Function P(N AS Integer)
Dim Sum As Integer
Sum=0
For i=1 To N
Sum=Sum+i
Next i
P=Sum
End Function
打开窗体运行后,单击命令按钮,输出结果是
A. 15
B. 20
C. 25
D. 35
窗体中有3个命令按钮,分别命名为Commandl、Command2和Command3。当单击Cmmandl按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Corn.mandl的单击事件过程中,正确的是
A. Private Sub Commandl—click() Command2.ViSible=True Command3.ViSible=False End Sub
B. Private Sub Commandl_click() Command2.Enabl ed=True Command3.Enabl ed=False End Sub
C. Private Sub Commandl_C1ick() Command2.Enabled=True Command3.ViSible=False End Sub
D. Private Sub Commandl_C1ick() Coiihmand2.Vi s ible:True Command3.Enabled=False End Sub
第二节 完型填空
阅读下面短文,从短文后所给各题的四个选项(A、B、C和D)中选出能填入相应空白处的最佳选项。
Once a group of tourists who were staying at a hotel in Birmingham were having dinner in the restaurant. Fish was brought and 【B1】 they were eating it, some of them 【B2】 interesting stories about 【B3】 pearls and other valuable 【B4】 inside fish.
An old gentleman, who up to now had 【B5】 quietly to their conversation, at last said:
"I've heard all your stories, and now I' 11 tell you 【B6】 . When I was a young man I worked in a large factory in New York, and 【B7】 Very 【B8】 we were engaged. About two months 【B9】 our marriage was 【B10】 , I was suddenly sent to Birmingham on very important business. I left my sweetheart, 【B11】 to write to her."
I had to stay in Birmingham longer than I had expected. At last my work was done, and I could leave Birmingham. But just before I 【B12】 home, I bought a beautiful and very 【B13】 diamond ring, intending to give it to my sweetheart.
On my way to New York, I was 【B14】 the morning newspaper, 【B15】 had been brought on board by the pilot. Suddenly I saw an announcement of my sweetheart's marriage with 【B16】 .This made me 【B17】 angry that I threw the 【B18】 overboard. A few days later, when I was eating fish I bit on something 54, What do you think it was?"
"The diamond ring." cried his companion. "No," said the old gentleman 【B20】 , "it was a fish-bone."
【B1】
A. while
B. after
C. before
D. during
【B4】
A. materials
B. affairs
C. matters
D. things