Exam UiARD All QuestionsBrowse all questions from this exam
Question 176

A developer wants to add items to a list of strings using the Invoke Method activity. The list is declared as follows:

The Invoke Method includes the following properties:

The Parameters property is as follows:

Based on the exhibits, what is the outcome of this Invoke Method activity?

    Correct Answer: B

    The Invoke Method activity is configured correctly to add the value "Yellow" to the existing list "Colors". The default list already contains the items "Red" and "Green". By using the Invoke Method with the MethodName property set to "Add" and specifying "Yellow" as the parameter, the list will be appended with this new item. As a result, the list "Colors" will contain the items in the following order: "Red", "Green", "Yellow".

Discussion
Engineer24Option: D

If you test in studio will be an error at expresion new List (of String) from ("Red", "Green"). If you change the expresion like this: new List (of String) from {"Red", "Green"}, then its work and can be the answer B.

sur_bhi123456789Option: D

ans is D

[Removed]Option: D

D is the correct answer. The new list (of string) from..after from the values should be in flower brackets so the answer D.