UiPath Automation Developer Associate v1 — Question 5
In a UiPath Studio project, what is the broadest scope a variable can have?
Answer options
- A. Within the activity in which it is defined.
- B. Within the surrounding "Do" or "Body" sequence
- C. Global, available in the entire project.
- D. Outermost container in the current xaml project file.
Correct answer: C
Explanation
The correct answer is C because a global variable is accessible throughout the entire project, allowing for broader use across different parts of the automation. Options A and B are limited to specific contexts, while option D refers to a broader scope but not global access like option C provides.