UiRPA Exam QuestionsBrowse all questions from this exam

UiRPA Exam - Question 20


A developer has created an automation process that includes:

1. Main.xaml file:

2. Variables in the Variable panel in the Main.xaml file:

3. Main.xaml file invokes the SuperMarket workflow using the following argument:

4. Detailed SuperMarket sequence and right-hand side expression shown below:

Based on the information shown in the exhibits, what is the output of the Write Line activity in the Main.xaml file?

Show Answer
Correct Answer: B

In the Main.xaml file, the default value of the variable 'Fruits' is set to 'Apple.' The Main.xaml file invokes the SuperMarket workflow with the out_ShoppingBasket argument with an Out direction referencing the variable 'Fruits.' Inside the SuperMarket.xaml workflow, the expression 'out_ShoppingBasket + ",Orange"' implies that any existing value of out_ShoppingBasket will be concatenated with ',Orange.' Given the Out direction, initially, the out_ShoppingBasket does not carry the value 'Apple' into the workflow since it only outputs values, resulting in the output being ',Orange' from the SuperMarket workflow. Consequently, the Write Line activity in the Main.xaml file will output ', Orange.'

Discussion

17 comments
Sign in to comment
rolles
Mar 31, 2023

The default value on the variable "Fruits" is "Apple" in the Main.xaml file. We are looking for the output in the Write Line activity so I believe the answer is "Apple"

PrasaanthS
Jul 16, 2023

The answer is ", Orange" because the direction of the argument is "out" If the direction is "in" the answer is "apple" If the direction is "in/out" the answer is "apple, orange"

fletchm58c
Mar 22, 2023

I believe the correct answer should be ",Orange", the argument is direction OUT

AutomationMaster
Apr 1, 2023

Correct option should be ,Orange

DKAT2023
Aug 14, 2023

Correct answer is ",Orange"

DKAT2023Option: B
Aug 30, 2023

Correct answer is ",Orange"

iboshowOption: C
Apr 17, 2023

Answer is Apple as writeline only writes the Fruits value which has a default value of Apple

BotLearner
Apr 27, 2023

Correction should e Orange (B) Actually the result appear as ,Orange as the comma is added in the called workflow verified in studio

Rag_123Option: B
Jun 22, 2023

Tested in Studio

MarioEmanuel88
May 31, 2023

I build this on test studio and the answer is just ,Orange (because you have a comma in the output message)> if the argument is IN the answer is Apple, if the argument is in/out the answer is apple.orange

[Removed]
Jul 24, 2023

I tested all three directions 'in, out, in/out' and the result was the same: 'Apple'

PM2
Jul 24, 2023

correct answer should be "Apple"

nitinv0078Option: B
Aug 11, 2023

", Orange" is the answer

nalinnishantOption: B
Aug 18, 2023

Orange is answer because we are getting output from the second file.

LarsMartinJ
Oct 11, 2023

The default value of "Fruits" is "Apple", but this is never passed into the shopping basket workflow (as the argument only goes "Out"). So the Assign in the shopping basket adds ", Orange" to the empty out_Shoppingbasket argument and passes this out of the workflow. This overwrites the default value "Apple" in the existing variable "Fruits". Thus, the Write Line should be ", Orange".

scully2501Option: B
Jan 30, 2024

I've created the code in UIPATH and the output is ",Orange" so the answer is "B". Because it's the fruit variable that defaults to "Apple" before entering the sequence, "Apple" is automatically deleted by the output variable.

Yash04Option: B
Feb 27, 2024

B is correct answer proved in practical