Exam UiRPA All QuestionsBrowse all questions from this exam
Question 29

Which expression should be used to return the first four characters from a String variable called StrVar?

    Correct Answer: A

    To return the first four characters from a String variable called StrVar, you use the method StrVar.Substring(0, 4). This method starts at the zero index (first character) and extracts four characters from that point. Any other Substring variations either start at the wrong position or extract the wrong number of characters.

Discussion
[Removed]Option: A

Tested in Studio as well and it's A.

MarioEmanuel88Option: D

tested in studio, can be also variant D

scully2501

tested in studio and the result is the last 3 characteristics so it's A