nerdexam
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)
  • A
    80% (39)
  • B
    4% (2)
  • C
    6% (3)
  • D
    10% (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.

Full MB-500 Practice