What is the output of the following code?
class Program
{
    static void Main(string[] args)
    {
        SortedList myList = new SortedList();
        myList.Add('m', "Harry");
        myList.Add('a', "Mark");
        myList.Add('b', "Scott");
        myList.Add('h', "John");
        myList.Add('d', "Larry");
        myList.GetByIndex(1);
        Console.WriteLine(myList.GetByIndex(1));
    }
}

Mark

Larry

Harry

Scott

Verified Answer
Correct Option - d

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