Question 52 of 103 from exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer

Question 52 of 103 from exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer

Question

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:

switch (trunkTable.TruckStatus)

{

case TruckStatus: :Empty:

Info("1");
break;

case TruckStatus: :Loaded:
Info("2")5
break;

case TruckStatus: :Completed:
Info("3")5
break;

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 the integer value of the enumeration.

if ( truckTable.TruckStatus
{

Info("Extended") 5
}

4 || truckTable.TruckStatus

Does the solution meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B.