Exam UiRPA All QuestionsBrowse all questions from this exam
Question 31

What is the maximum scope a variable can have in an automation project?

    Correct Answer: A

    In an automation project, the maximum scope a variable can have is within the outermost container in the current xaml project file it is defined in. This is because variables are limited to the context of the xaml file they are declared in and cannot inherently be accessed across different xaml files unless explicitly passed through arguments.

Discussion
saurabh1986Option: D

I think the answer should be D. Example: Main.xaml file can have multiple invoked workflows and if a variable is passed in the Main.Xaml then that variable will be exposed to all those invoked workflows.

PrasaanthS

The answer is A. The variables will not be exposed directly to all workflows. Only through arguments, we can pass the values to invoked workflows.