VBScript Multiple choices

Total available count: 25
Subject - Scripting Languages
Subsubject - VBScript

Pick Out the correct way of creating an array in VBscript?







Array Declaration
Arrays are declared the same way a variable has been declared except that the declaration of an array variable uses parenthesis. In the following example, In the brackets mentioned that the size of the array.

'Method 1: Using Dim
Dim arrx() 'Without Size

'Method 2: Mentioning the Size of the array
Dim arry(10) 'Declared with a size of 10

'Method 3: using 'Array' Parameter
Dim arrz
arrz = Array("HTML","CSS","HTML5","jQuery")

Although the Array size is indicated as 10 in the above example, But it can hold 11 values as the array index starts from ZERO.

Array Index Cannot Be in the Negative value.

VBScript Arrays can store any type of variable in an array. Hence, an array can store a string, an integer, or characters in a single array variable.