UiPath RPA Associate (UiRPA) — Question 29
A developer is building a robot to validate that the birth date is in the correct format within the submitted forms. Which method or activity is best-suited to validate the format?
Answer options
- A. “Is Match” Activity
- B. String Method “Contains”
- C. “Matches” Activity
- D. String Method “Equals”
Correct answer: C
Explanation
The correct answer is C, the “Matches” Activity, as it is specifically designed to validate strings against a regular expression, which is ideal for checking formats like dates. The other options, while useful for different string operations, do not specifically validate format adherence, making them unsuitable for this task.