ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 109 - MB-500 discussion

Report
Export

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

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 post handler to the method that checks the enumeration and logic for your new enumeration values using a range comparison for your new values.

Does the solution meet the goal?

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A
asked 05/10/2024
Jyothiswaroop Rajan
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first