Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam MB-500 Topic 1 Question 99 Discussion

Actual exam question for Microsoft's MB-500 exam
Question #: 99
Topic #: 1
[All MB-500 Questions]

You have an enumeration named truckStatus that has the following statuses:

* Empty

* Loaded

* Completed

You have the following code:

You need to extend this (enumeration and add the following statuses to the enumeration: Quarantine, InTransit. You must then modify code that validates the switch statement.

Solution: Add a new case statement in the model of the existing code.

Does the solution meet the goal?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Lashaun
5 days ago
I agree with Jodi, the solution needs to modify the code that validates the switch statement to fully meet the goal.
upvoted 0 times
...
Jodi
6 days ago
No, the solution does not meet the goal because it does not modify the code that validates the switch statement.
upvoted 0 times
...
Jose
7 days ago
I think the solution is correct because it adds the new statuses to the enumeration.
upvoted 0 times
...
Helene
10 days ago
Yes, the solution adds the new statuses Quarantine and InTransit.
upvoted 0 times
...
Zona
14 days ago
The solution seems straightforward, but I'd want to make sure the new statuses are properly documented and tested before approving it.
upvoted 0 times
...
Claudio
20 days ago
Haha, I bet the developer who wrote this code was having a bad day. Quarantine, really? What is this, a COVID-themed truck simulator?
upvoted 0 times
Miriam
2 days ago
A) Yes
upvoted 0 times
...
...
Edwin
1 months ago
I'm not sure if this is the best solution. Shouldn't we also update the enumeration itself to include the new statuses?
upvoted 0 times
...
Elenora
1 months ago
The solution looks good, adding the new cases to the switch statement seems like the right approach.
upvoted 0 times
Cory
3 days ago
B) No
upvoted 0 times
...
Elke
5 days ago
The solution meets the goal by adding the new cases to the switch statement.
upvoted 0 times
...
Aileen
7 days ago
A) Yes
upvoted 0 times
...
Stephaine
13 days ago
B) No
upvoted 0 times
...
Willie
19 days ago
The solution meets the goal.
upvoted 0 times
...
Susana
22 days ago
A) Yes
upvoted 0 times
...
...

Save Cancel