A developer has created a variable of type List of Strings named "UsersList", and initialized it with an empty list: "UsersList = new List(Of String)".
What is printed in the log message after the following Invoke Code is executed?
A.
0
B.
2
C.
Object reference not set to an instance exception is thrown
The code is adding two items to the list, but since the list is initialized as an empty list, the count will be 0.
[:, Data Manipulation with Lists and Dictionaries in Studio course, Lesson 2: Lists, Topic: Creating Lists, How to initiate List? forum post, Answer by @VishalS, , , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit