【单选题】【消耗次数:1】
对动态数组a(),若原数组为a(3),若要改为a(6)时,为保证数组原来的数据不丢失,应使用下列( )语句进行定义。
ReDim a(6)
Dim a(6)
ReDim a(3 To 6)
ReDim Preserve a(6)
参考答案:
复制
纠错
相关题目
【单选题】 语句Dim t(6,-3 to 5)As Integer定义的数组元素有( )个。
①  45
②  54
③  40
④  63
【单选题】 语句Dim t(2 to 6,-3 to 5)As Integer定义的数组元素有( )个。
①  45
②  54
③  40
④  11
【单选题】 语句Dim t(-2 to 6)As Integer定义的数组元素有( )个。
①  6
②  7
③  8
④  9
【判断题】 数组a的定义:int a[5][3]={{1,3},{5},{5,6,8}};则该数组共有6个元素。
①  正确
②  错误
【单选题】 若有定义:int a[][3]={1,2,3,4,5,6,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为?
①  0
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为( )。
①  0
②  4
③  8
④  6
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为(???)。
①  0
②  4
③  8
④  6
随机题目
【单选题】 We have studied English for only one year, ____ we can perform English short play already.?
①  for ?
②  and ?
③  yet ?
④  or?
【单选题】 With the old man ____ the way, we had no trouble in finding that mysterious cave.
①  leading
②  led
③  lead
④  to be led
【单选题】 How can he ____if he is not ____?
①  listen--hearing
②  hear--listening
③  be listening--heard
④  be hearing--listened to
【单选题】 Lily: Hello, John! What was the weather like yesterday?John: ____
①  I like nice and bright weather.
②  You don’t like cold weather, do you?
③  That was a favorable weather.
④  Nice and bright, not too cold.
【单选题】 10. Far away around the corner I could see a small female ____advancing towards us.
①  body
②  figure
③  man
④  symbol
【单选题】 It is often more difficult to find trained men than ____ for scientific research.
①  getting financial support
②  to getting financial support
③  to get financial support
④  in getting financial support
【单选题】 “Here is the money I promised,” he said. “I always ____ promises.”
①  agree
②  follow
③  make
④  keep
【单选题】 This advertisement is a ____ example of their marketing plan.
①  social
②  typical
③  natural
④  historical
【单选题】 The earth ____ heat and light from the sun.
①  takes on
②  takes in
③  absorbs in
④  picks out
【单选题】 —When ____ the show ____?—It begins at 7 o’clock this evening.
①  does--begin
②  will--begin
③  is--beginning
④  is--going to begin