nerdexam
Microsoft

MB-500 · Question #387

MB-500 Question #387: Real Exam Question with Answer & Explanation

Sign in or unlock MB-500 to reveal the answer and full explanation for question #387. The question stem and answer options stay visible for context.

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";

Unlock MB-500 to see the answer

You've previewed enough free MB-500 questions. Unlock MB-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full MB-500 Practice