IT
IT Tools
Handy online tools for developers
Cheatsheets
Search tools
⌘K
EN
All quizzes
C#
Core
Multiple choice
A.
-1, because name?.Length short-circuits to null and ?? supplies -1
B.
0, because the Length of a null string is treated as zero
C.
It throws a NullReferenceException when reading name.Length
D.
It fails to compile because Length is an int, not int?
Submit
Open the cheat sheet
Previous
Next