Microsoft
MB-500 · Question #387
A developer submits code for a quality assurance review. Several lines of code use the var data type. You need to validate the segments for the correct X++ structure. Which code statement will pass…
The correct answer is C. var var1 = true; var1 = true ? 10:false. You've hit your limit · resets 4am (America/New_York)
Develop and test code
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 for the correct X++ structure. Which code statement will pass validation?
Options
- Avar var1 = systemDataGet(); var1 = var1 ? today():"Not today";
- Bvar var1 = (var1 >= false) ? true:10;
- Cvar var1 = true; var1 = true ? 10:false;
- Dvar var1 = true ? 10:"10";
How the community answered
(54 responses)- A4% (2)
- B9% (5)
- C70% (38)
- D17% (9)
Explanation
You've hit your limit · resets 4am (America/New_York)
Topics
#X++ var type#type inference#code validation#X++ syntax
Community Discussion
No community discussion yet for this question.