Skip to Content

UiPath UiADPv1: What is the Output of UiPath Workflow Using String Manipulation?

Analyze a UiPath workflow that splits and manipulates strings to determine the final logged output. Test your understanding of UiPath string functions like Split, SelectMany and Join.

Table of Contents

Question

Given the following workflow:

What will be the output of the Log Message activity?

What will be the output of the Log Message activity?

A. apple, pear, orange
B. apple, pear, orange, mango, kiwi
C. “apple pear orange”, “mango kiwi”
D. apple pear orange, mango kiwi

Answer

A. apple, pear, orange

Explanation

Here is my analysis of the UiPath workflow shown in the image:

The workflow assigns the string “apple pear orange” to the variable arr.

It then uses an Expression Editor to split this string on spaces using the Split function, passing the result to the SelectMany function which flattens the resulting array of arrays into a single array, and assigns this to the variable arr.

Finally, it uses a Log Message activity to log the value of arr joined with commas.

Based on this, the output of the Log Message activity will be:
apple,pear,orange

So the correct answer is A. “apple, pear, orange”.

The string is first split on spaces into an array [“apple”, “pear”, “orange”]. SelectMany then flattens this to [“apple”, “pear”, “orange”]. Finally, joining this array with commas produces the logged output “apple,pear,orange”.

Answers B, C and D are incorrect, as the string “mango kiwi” is not part of the workflow at any point.

UiPath UiADPv1 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the UiPath UiADPv1 exam and earn UiPath UiADPv1 certification.