UiPath Automation Developer Professional v1 — Question 136

A developer has created a variable of type String called “MyNumbers” and assigned to it the following value: “1, 2, 3, 4, 5, 6”. What is the resulting data type for the expression MyNumbers.Split(“,”c)(1)?

Answer options

Correct answer: B

Explanation

The expression MyNumbers.Split(','c) splits the string into an array of substrings, and accessing index (1) returns the second element of that array, which is still a String. The other options, such as Array of String, Double, and Int32, do not represent the data type of the individual element retrieved from the split operation.