问题 填空题

有一个VBA计算程序,该程序用户界面由4个文本框和3个按钮组成。4个文本框的名称分别为Text1、Text2、Text3和Text4。3个按钮分别为清除(名为Command1)、计算(名为Command2)和退出(名为Command3)。窗体打开运行后,单击“清除”按钮,则清除所有文本框中显示的内容;单击“计算”按钮,则计算在Text1、Text2和Text3这3个文本框中输入的3科成绩的平均成绩,并将结果存放在Text4文本框中,单击“退出”按钮则退出。请将下列程序填空补充完整。
Private Sub Command1_Click()
Me!Text1=""
Me!Text2=""
Me!Text3=""
Me!Text4=""
End Sub
Private Sub Command2_Click()
If Me!Text1="" Or Me!Text2="" Or Me!Text3="" Then
MsgBox "成绩输入不全"
Else
Me!Text4=(______+Val(Me!Text2)+Val(Me!Text3))/3
End If
End Sub
Private Sub Command3_Click()
Docmd Quit
End Sub

答案

参考答案:Val(Me!Text1)

解析: 由题目可知,Text4中存放的是3科成绩的平均成绩,所以要把3个科目的成绩加起来除以3,所以第13空应该填Val(Me!Text1),获得输人科目的成绩。

阅读理解
阅读短文,从文后所给A—F六个句子中选出填入文中空缺处,使短文完整正确。
If you have a brother or sister, you already know you are different from each other.You live together in the same house and have the same parents.小题1:________ Why is this? One possible reason is the way your parents treat you.
First-born children receive all the attention from their parents. Most families have twice as many photos of a first-born as any other child. Parents tend to give them more responsibility.小题2:_______ As a result, first-borns are often responsible, hard-working and serious. They often want to do well at school and work小题3:_______ For example, George W. Bush, George Washington, and Lyndon Baines Johnson are all first-borns.
When a second child arrives, parents are more relaxed. The second child is allowed to be more independent. But he also has to compete with the first-born for the parents’ attention and love. These children often choose different sports and hobbies to show independence.小题4:______ They are often adventurous, fun-loving, and outgoing, but can be jealous and get angry easily.
The youngest child tends to be the happiest. He has fewer responsibilities and more freedom. These children do not feel pressure to do well at school and work, but have to be creative to get their family’s attention.小题5:_______ So, many famous talk-show hosts and comedians were born last.
A.There are more first-born American Presidents than second or last-born children.
B.They are often friendly, humorous and calm.
C.But you have different personalities.
D.Their parents may probably love them more.
E.And they develop different personalities.
F.They depend on the first-borns to take care of younger brothers and sisters.
问答题 简答题