Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam UiRPA All Questions

View all questions & answers for the UiRPA exam

Exam UiRPA topic 1 question 124 discussion

Actual exam question from UiPath 's UiRPA
Question #: 124
Topic #: 1
[All UiRPA Questions]

A developer has defined the StrVar variable of type String. Which expression should the developer use to return four characters starting with the second character?

  • A. StrVar.Substring(1, 4)
  • B. StrVar.Substring(1, 5)
  • C. StrVar.Substring(2, 4)
  • D. StrVar.Substring(2, 5)
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rolles
1 year, 8 months ago
I agree. Answer should be A, the second character starts with index 1
upvoted 4 times
...
AutomationMaster
1 year, 8 months ago
Selected Answer: A
Option should be as A because indexing starts like 0,1,2..and so on hence index 1 will represent the second character of the string and need four characters so StrVar.Substring(1,4) is the correct option to go with.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...