Microsoft
MB6-894 · Question #54
You are debugging in X++ and review the following method: Which three best practices does this method violate? Each correct answer presents part of the solution.
The correct answer is A. The method does not assign a value to the variable var2. D. The method manipulated the parameter _param. E. The return keyword is used in both the If and the Else statements. See the full explanation below for the reasoning.
Question
You are debugging in X++ and review the following method:
Which three best practices does this method violate? Each correct answer presents part of the solution.
Exhibit
Options
- AThe method does not assign a value to the variable var2.
- BThe If and Else statements should not use braces because each statement is only one line.
- CThe parameter _param should be assigned using the format _param = _param + var1.
- DThe method manipulated the parameter _param.
- EThe return keyword is used in both the If and the Else statements.
How the community answered
(35 responses)- A83% (29)
- B11% (4)
- C6% (2)
Community Discussion
No community discussion yet for this question.
