Multiple choice technology testing

The length of the array can be get by the method

  1. length(array)

  2. unbound(array)

  3. ubound(array)

  4. count(array)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In VBScript (used by QTP), UBound(array) returns the highest index of an array, which equals length minus one for zero-based arrays. LBound returns the lowest index, typically zero.