找考题网-背景图
未分类题

在窗体上添加一个名称为Command1的命令按钮,然后编写如下事件代码: Private Sub Command1_Click( ) Dim a(10,10) For m=2 To 4 For n=4 TO 5 a(m,n)m*n Next n Next m MsgBox a(2,4)+a(3,5)+a(4,5) End Sub 打开窗体运行后,单击命令按钮,则消息框的输出结果是( )。
D.53

A.23
B.33
C.43

【参考答案】

C
解析:本题考查VBA中二维数组的知识。本题中的数组a是一个二维数组,在一个二重循环中为这个数组部分进行了赋值。本题中只需要注意最后使用到的二维数组的元素值,显然其值为两个下标之积。
热门试题

未分类题It has been justly said that while' we speak with our vocal organs we (1)_____ with our whole bodies'. All of us communicate with one another (2)_____, as well as with words. Sometimes we know what we're doing, as with the use of gestures such as the thumbs-up sign to indicate that, we (3)_____. But most of the time we're not aware that we're doing it. We gesture with eyebrows or a hand, meet someone else's eyes and (4)_____. These actions we (5)_____ are random and incidental. But researchers (6)_____ that there is a system of them almost as consistent and comprehensible as language, and they conclude that there is a whole (7)_____ of body language, (8)_____ the way we move, the gestures we employ, the posture we adopt, the facial expression we (9)_____, the extent to which we touch and the distance we stand (10)_____ each other.The body language serves a variety of purposes. Firstly it can replace verbal communication, (11)_____ with the use of gesturE.Secondly it can modify verbal communication, loudness and (12)_____ of voice is an example herE.Thirdly it regulates social interaction: turn taking is largely governed by non-verbal (13)_____. Finally it conveys our emotions and attitudes. This is (14)_____ important for successful cross-culture communication.Every culture has its own' body language', and children absorb its nuances (15)_____ with spoken languagE.The way an Englishmen crosses his legs is (16)_____ like the way a mate American does it. When we communicate with people from other, cultures, the body language sometimes help make the communication easy and (17)_____, such as shaking hand is such a (18)_____ gesture that people all over the world know that it is a signal for greeting. But sometimes—the body language can cause certain misunderstanding (19)_____ people of different cultures often have different forms behavior. for sending the same message or have different (20)_____ towards the same body signals.A.addressB.reverseC.converseD.confer

A.B.
C.
A.address
B.reverse
C.converse