exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 94 discussion

Actual exam question from Microsoft's 70-483
Question #: 94
Topic #: 2
[All 70-483 Questions]

You are developing an application that contains a class named TheaterCustomer and a method named ProcessTheaterCustomer. The method accepts a TheaterCustomer object as the input parameter.
ProcessTheaterCustomer()
You have the following requirements:
✑ Store the TheaterCustomer objects in a collection.
✑ Ensure that the ProcessTheaterCustomer() method processes the TheaterCustomer objects in the order in which they are placed into the collection.
You need to meet the requirements.
What should you do?

  • A. Create a System.Collections.Stack collection. Use the Push() method to add TheaterCustomer objects to the collection. Use the Peek() method to pass the objects to the ProcessTheaterCustomer() method.
  • B. Create a System.Collections.Queue collection. Use the Enqueue() method to add TheaterCustomer objects to the collection. Use the Dequeue() method to pass the objects to the ProcessTheaterCustomer() method.
  • C. Create a System.Collections.SortedList collection. Use the Add() method to add TheaterCustomer objects to the collection. Use the Remove() method to pass the objects to the ProcessTheaterCustomer() method.
  • D. Create a System.Collections.ArrayList collection. Use the Insert() method to add TheaterCustomer objects to the collection. Use the Remove() method to
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
gronderc
Highly Voted 5 years, 7 months ago
be careful, there is similar question with "objects in the REVERSED order" and Stack as right answer
upvoted 27 times
...
supersunny
Highly Voted 5 years, 9 months ago
Queue is FIFO. B is the answer.
upvoted 16 times
...
SanjiVinsmoke
Most Recent 4 years, 6 months ago
The correct answer is A stack
upvoted 1 times
gjsdevs
4 years, 5 months ago
Why? It seems to be asking for first in first out and a stack is the opposite (first in, last out)
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago