Exam UiARD All QuestionsBrowse all questions from this exam
Question 144

You have two lists in a workflow:

1. FranceCities which contains city names in France

2. IndiaCities which contains city names in India

In order to show all city names from both lists, which expression should be used as the input to a MessageBox?

    Correct Answer: C

    To combine and display all city names from both lists, we need to concatenate the lists and then join the resulting list into a single string separated by commas. The correct expression for this is 'String.Join(',', Enumerable.Concat(FranceCities, IndiaCities).ToList)'. This expression uses 'Enumerable.Concat' to join the two lists and 'String.Join' to create a single string from the concatenated list with comma separation. Therefore, option C is the correct choice.

Discussion
Engineer24Option: C

Tested in Studio !

asfghjkl

Did you take the Advanced Certification recently?