Exam UiADPv1 All QuestionsBrowse all questions from this exam
Question 76

A developer has created a variable of type List of Strings named “UserList” and initialized it with an empty list: “UserList = new List(Of String)”.

What is printed in the log message after the following Invoke Code is executed?

    Correct Answer: C

    The variable initialized was named UserList, but the code references Users_List. Since Users_List has not been initialized, trying to add elements to it will cause a 'Object reference not set to an instance exception' to be thrown.

Discussion
AndresPCOption: C

C the variable initialized was UserList, not User_List

kingkayyOption: C

Incorrect variable names.