Exam UiPath-ADPv1 Topic 1 Question 45 Discussion

Actual exam question for UiPath's UiPath-ADPv1 exam
Question #: 45
Topic #: 1
A developer has created a string array variable as shown below:
UserNames = {"Jane", "Jack", "Jill", "John"}
Which expression should the developer use in a Log Message activity to print the elements of the array separated by the string ","?

Suggested Answer: C Vote an answer

To print the elements of a string array separated by a specific string, the String.Join method is used in C#.
This method takes two parameters: the first is the separator string and the second is the array to join into a single string.
Given the options and the requirement to separate array elements with a comma and a space (", "), the correct expression to use in a Log Message activity would be:
C: String.Join(", ", UserNames)
This will produce a single string with each element of the UserNames array separated by ", " (a comma followed by a space).

by Jacob at Dec 26, 2025, 10:26 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어