Exam UiPath-ADPv1 Topic 1 Question 45 Discussion
Actual exam question for UiPath's UiPath-ADPv1 exam
Question #: 45
Topic #: 1
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 ","?
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).
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
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
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).