(Choose 1 answer)
What is the exact output of the below C# code?
ArrayList A = new ArrayList();A.Add("Mahmoud");
A.Add(2);A.Add(2.2f);
Console.Write(S"{A.Count): ");
foreach (object o in A)
{
Console.Write($"{o} ");}
A. 3: Mahmoud 2 2.2
B. 1: Mahmoud
C. This code compiles successfully but it raises an exception at runtime since we add strings, integers, and float numbers.
D. This code has a compile-time error as we cannot add strings, integers, and float numbers to the same data collection.
Exit 25