Which of the following statements are correct about the Stack collection?1. It can be used for evaluation of expressions.2. All elements in the Stack collection can be accessed using an enumerator.3. It is used to maintain a FIFO list.4. All elements stored in a Stack collection must be of similar type.5. Top-most element of the Stack collection can be accessed using the Peek() method.

🎲 Try a Random Question  |  Total Questions in Quiz: 156  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C# Programming Practice Test — practice the complete quiz, review flashcards, or try a random question.


Which of the following statements are correct about the Stack collection?<br>1. It can be used for evaluation of expressions.<br>2. All elements in the Stack collection can be accessed using an enumerator.<br>3. It is used to maintain a FIFO list.<br>4. All elements stored in a Stack collection must be of similar type.<br>5. Top-most element of the Stack collection can be accessed using the Peek() method.