What will be the output for the below given code snippet:
SortedList sortList= new SortedList();
sortList.Add(10, null);
sortList.Add(null, "Chennai");
sortList.Add(30, "Chennai");
sortList.Add(20, "Bangalore");

Exception - Key cannot be null

Compile time error - Value cannot be null

Exception - Value cannot be null

Exception - Duplicate values are not allowed

Verified Answer
Correct Option - a

To get all Advanced CSharp Programming Assessment Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram