问题 单项选择题

下列数组定义语句错误的是( )。

A.k%=10Dim Arr(k)

B.Const k%=10Dim Arr(k)

C.Dim Arrl(10) As IntegerDim Arr2(10)

D.Dim Arrl(1 To 10)Dim Arr2(1 To 10,2 To 11)

答案

参考答案:A

解析:数组使用前要先定义,定义数组是为了给数组分配存储空间,所以定义 数组维的界不能是变量,但可以是符号常量。注意:选项A)错误,定义数组Arr语句中,维的界用了变量k选项B)正确,定 义数组Arr语句中,维的界k是符号常量;选项C)正确,用As Integer说明数组Arrl是整 型数组,数组Arr2没有指明类型,则隐含数组为Variant类型;选项D)正确。维的界用 “<下界> To <上界>”的形式定义是正确的。

单项选择题
阅读理解

阅读理解。

     If you are lost in the mountains,stay calm in the face of darkness,loneliness,and the unknown.

It will greatly increase your chances of survival.Many people think that preparing necessary

equipment and knowing how to use it are very important,but actually eighty percent of

mountain survival is your reaction to fear.

     FIND A HIDING PLACE

     Unnecessary labor will make you sweat and make you cold.Find a hiding place around you

before trying to start your own construction.If you are in a snowcovered area,you may be able

to dig a cave in deep snow for protection from the wind.You should try to hide yourself in the

middle of the mountain if possible.Stay out of the valleys-cold air falls,and the valley floor can

be the coldest area on the mountain.

     SIGNAL RESCUERS FOR HELP

     The best time to signal rescuers is during the day.Signal for help from the highest point

possible-it will be easier for rescuers to see you,and any sound you make will travel farther.

If you take a box of matches and a space blanket(a special blanketfor travelling),build three

smoky fires and put your blanket-gold side facing out-on the ground.

     DO NOT WALK AWAY

     It will make finding you more difficult if you have gone off in a different direction,as search

teams will be trying to follow your path.Searchers often end up finding a car with no one in it.

If you get frostbite,do not rewarm the affected area until you’re out of danger.You can walk on

frostbitten feet,but once you warm the area and can feel the pain,you will not want to walk

anywhere.Try to protect the frostbitten area and keep it dry untilyou are rescued.