Question 45

______ variables are not reinitialized each times Visual Basic invokes a procedure and thus retains or preserves value even when a procedure ends.

  1. AStatic
  2. BDynamic
  3. CVirtual
  4. DPrivate
Show answerHide answer

Correct answer: (A) Static

Explanation

A Static variable keeps its value between procedure calls. It is not reinitialized each time the procedure runs.

From DSSSB TGT Computer Science Practice Set 5

This is question 45 of DSSSB TGT Computer Science Practice Set 5. 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.