Exam UiADPv1 All QuestionsBrowse all questions from this exam
Question 16

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 activity has the following properties:

The Parameters property is as follows:

Based on the information shown in the exhibits what is the outcome of the Invoke Method activity?

    Correct Answer: A

    An exception will be thrown because the 'TargetObject' property in the Invoke Method activity is left as null. The 'TargetObject' should be assigned to a valid list instance to add an item to it. Since this property is null, the code will throw a 'Value cannot be null' exception when attempting to invoke the 'Add' method on the null object.

Discussion
IngvarnOption: A

A. An exception will be thrown. - List has not been declared>Target object is null

Ingvarn

Invoke Method: Value cannot be null. (Parameter 'TargetObject')

milindkumarOption: A

The answer is A

mhs_MohammadOption: A

Answer is A

ASMA__Option: A

Correct answer is A tested at studio

EricHsuOption: A

The anser is A by the real test