Microsoft
MB-500 · Question #173
A developer submits code for a quality assurance review. Several lines of code use the var data type. You need to validate the segments tor the correct X++structure. Which code statement will pass…
The correct answer is A. var var1 = systemDateGet (); var1 = var1 ? today(); ''No today''. You've hit your limit · resets 4am (America/New_York)
Develop business logic
Question
A developer submits code for a quality assurance review. Several lines of code use the var data type. You need to validate the segments tor the correct X++structure. Which code statement will pass validation?
Options
- Avar var1 = systemDateGet (); var1 = var1 ? today(); ''No today'';
- Bvar var1 = true ? 10:''10''
- Cvar var1 = true; var1 = true ? 10:falase;
- Dvar var1 = (var1 >= false) ? true :10;
How the community answered
(49 responses)- A80% (39)
- B4% (2)
- C6% (3)
- D10% (5)
Explanation
You've hit your limit · resets 4am (America/New_York)
Topics
#X++ syntax#var data type#ternary operator#code validation
Community Discussion
No community discussion yet for this question.