Question 46

In VB, to change the size of a dynamic array, ______ is used at the point in the code where you want it to change.

  1. ADim
  2. BRedim
  3. CChdim
  4. DBydim
Show answerHide answer

Correct answer: (B) Redim

Explanation

ReDim resizes a dynamic array in VB (ReDim Preserve also keeps its existing contents). Dim only declares the array.

From DSSSB TGT Computer Science Practice Set 2

This is question 46 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.