nerdexam
Microsoft

MB6-704 · Question #21

You are developing a solution to get a date as an input to perform an operation. The input will be in a variable named inputDate. You need to validate the date and throw an error if the date entered…

The correct answer is D. Exhibit D. || is logical Or. Works fine here. Not A, Not B, Not C: != is not equal.

Develop X++ code

Question

You are developing a solution to get a date as an input to perform an operation. The input will be in a variable named inputDate. You need to validate the date and throw an error if the date entered is null or greater than the current system date. Which X++ statement should you use? Exhibit A Exhibit B Exhibit C Exhibit D

Exhibits

MB6-704 question #21 exhibit 1
MB6-704 question #21 exhibit 2
MB6-704 question #21 exhibit 3

Options

  • AExhibit A
  • BExhibit B
  • CExhibit C
  • DExhibit D

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    14% (3)
  • D
    76% (16)

Explanation

|| is logical Or. Works fine here. Not A, Not B, Not C: != is not equal.

Topics

#date validation#null check#X++ statements#exception throwing

Community Discussion

No community discussion yet for this question.

Full MB6-704 Practice