UiPath RPA Associate (UiRPA) — Question 46

A developer has a String variable and needs to know how many characters it contains. How can the information be retrieved?

Answer options

Correct answer: A

Explanation

The correct method to find the number of characters in a String variable is 'variable.Length', which directly provides the length of the string. The other options are incorrect as 'variable.Count' and 'variable.Max' do not exist for String types, and 'variable.Chars' does not return the character count but rather allows access to individual characters.