Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#List and DictionarySingle-choice MCQ

What happens when you access a key that is NOT present in a Dictionary using the indexer?

var map = new Dictionary<string, int> { ["a"] = 1 }; int x = map["b"];