Vidyalelo
C# Programming · Q60

Miscellaneous in C Sharp

Programming · C# Programming · question 60

Q60

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
Answer
D.
All of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board