Which Statement Is Correct In The Following Cnet Code Snippetp #696
Which statement is correct in the following C#.NET code snippet?</p> <pre><code class="language-csharp" line="1"> Stack st = new Stack(); st.Push("Csharp"); st.Push(7.3); st.Push(8); st.Push('b'); st.Push(true); </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions - Collection Classes - Quiz No.1.
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);
Unsimilar elements like “Csharp”, 7.3, 8 cannot be stored in the same stack collection
Boolean values can never be stored in Stack collection
Perfectly workable code
All of the mentioned