Question: Your application has a value type called username that needs to be able to accept null values, but this is generating compile-time errors. How would you fix this in code?

  1. Null username = null;
  2. string? username = null;
  3. Type? username = null;
  4. Optional username = null;

Answer: The correct answer of the above question is Option B:string? username = null;