Control Instructions - Programming

Q1:

What will be the output of the C#.NET code snippet given below?
int val;
for (val = -5; val <= 5; val++)
{
    switch (val)
    {
        case 0:
            Console.Write ('India'); 
            break;
    }
    
    if (val > 0)
        Console.Write ('B'); 
    else if (val < 0)
        Console.Write ('X');
}

A XXXXXIndia

B IndiaBBBBB

C XXXXXIndiaBBBBB

D BBBBBIndiaXXXXX

E Zero

ANS:C - XXXXXIndiaBBBBB

No answer description is available. Let's discuss.