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 Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in