Microsoft
MB-500 · Question #233
A company uses Dynamics 365 Finance. You are performing a code review for several segments of code that use the Boolean data type. You need to validate the segments for the correct X++ structure…
The correct answer is A. boolean exprValue; exprValue = (8*6 == 48); D. boolean exprValue = (8*6 == '48') ? false:true. You've hit your limit · resets 4am (America/New_York)
Develop and test code
Question
A company uses Dynamics 365 Finance. You are performing a code review for several segments of code that use the Boolean data type. You need to validate the segments for the correct X++ structure. Which two code statements will compile? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Options
- Aboolean exprValue; exprValue = (8*6 == 48);
- Bboolean exprValue = (8*6 == '48') ? Yes:No;
- Cboolean exprValue; exprValue = (8*6 == 48) ? 1:0;
- Dboolean exprValue = (8*6 == '48') ? false:true;
How the community answered
(27 responses)- A74% (20)
- B15% (4)
- C11% (3)
Explanation
You've hit your limit · resets 4am (America/New_York)
Topics
#Boolean data type#X++ syntax#ternary operator#type validation
Community Discussion
No community discussion yet for this question.