UiADPv1 Exam QuestionsBrowse all questions from this exam

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

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

2 comments
Sign in to comment
AndresPCOption: C
Feb 13, 2024

C the variable initialized was UserList, not User_List

kingkayyOption: C
Apr 16, 2024

Incorrect variable names.