Examveda

Which statement is correct in the following C#.NET code snippet?
Stack st = new Stack();
st.Push("Csharp");
st.Push(7.3);
st.Push(8);
st.Push('b');
st.Push(true);

A. Unsimilar elements like "Csharp", 7.3, 8 cannot be stored in the same stack collection

B. Boolean values can never be stored in Stack collection

C. Perfectly workable code

D. All of the mentioned

Answer: Option C


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp