Quiz on NullReferenceException

Evaluate yourself on what you have learned about the NullReferenceException.

1

(Select all that apply.) When is a NullReferenceException thrown?

A)

When assigning a variable to null

B)

When calling a method on an uninitialized object reference

C)

When accessing a property or field of an uninitialized object reference

D)

When passing null as a parameter to a method that uses that parameter

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.