UiADPv1 Exam QuestionsBrowse all questions from this exam

UiADPv1 Exam - Question 65


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 “,”?

Show Answer
Correct Answer: A

To print the elements of a string array separated by a specific delimiter, the String.Join method is used. This method combines elements of the array into a single string, inserting the specified delimiter between each element. Therefore, using String.Join(',', UserNames) will correctly concatenate the elements of the UserNames array with a comma between each name.

Discussion

1 comment
Sign in to comment
LarcAi_TrainingOption: A
May 8, 2024

The answer is A, Tried and tested in Studio.