问题 填空题

设有命令按钮Command1的单击事件过程,代码如下:
Private Sub Command1_Click()
Dim a(3,3)As Integer
For i=1 To 3
For j=1 To 3
a(i,j)=i*j+i+j
Next j
Next i
Sum=0
For i=1 To 3
Sum=Sum+a(i,4-i)
Next i
MsgBox Sum
End Sub
运行程序,单击命令按钮,消息框输出结果是______。

答案

参考答案:V

解析: 本题考查VBA中二维数组和循环的知识。本题中的第一个二重循环为二维数组进行了赋值,第二个循环完成累加,关键是分析出累加了哪些元素。由循环体可以看出,实际上3次累加分别累加的是a(1,3)、a(2,2)、a(3,1),实际上就是二维数组的对角线,累加和为7+8+7=22。

阅读理解

阅读短文,根据短文内容回答问题。(共10分,每小题2分)

Confidence is very important in daily life. It can help you to develop a healthy attitude. A study shows that the people who are more confident are much happier. They can have more chance to make themselves successful. But how to be more confident? Here are some suggestions:

Speak loud   When you are not confident, you can’t do well what you want to do. You speak in a voice so low that other people can hardly hear you. Try to speak loud enough so that people can hear you clearly. The high voice can help you become more confident.

Play sports   Physical exercise makes you tired but completely relaxed. A strong body helps you be full of confidence.

Encourage yourself  Write down a list of things you did during the day to see how many things you have done well. Did you finish your homework? Did you tell a joke that made everybody laugh? Give yourself praise for the good things you’ve done.

Get rid of (消除) fear  Fear comes along with failure. But it’s easy to overcome (克服) if you know that failure is part of your life. Don’t hide your head just because you said something stupid last time. Try to start again and believe you can do better.

Pick up a hobby   If you like singing, sing as much as you can. In some ways, a hobby can make you outstanding. And it will make you happy and confident.

小题1:Is confidence important in daily life?

小题2:How many suggestions can help you to be more confident?

小题3:Which can help you be more confident, speak in a low voice or speak loud?

小题4:How can you encourage yourself?

小题5:What’s the passage mainly about?

简答题