UiADPv1 Exam QuestionsBrowse all questions from this exam

UiADPv1 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?

Show Answer
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

5 comments
Sign in to comment
IngvarnOption: A
Dec 2, 2023

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

Ingvarn
Dec 2, 2023

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

ASMA__Option: A
Dec 7, 2023

Correct answer is A tested at studio

mhs_MohammadOption: A
Dec 12, 2023

Answer is A

milindkumarOption: A
Feb 29, 2024

The answer is A

EricHsuOption: A
Jan 17, 2024

The anser is A by the real test