nerdexam
Microsoft

MB6-704 · Question #18

You need to identify which elements a job can contain. Which two elements should you identify? Each correct answer presents part of the solution.

The correct answer is A. Embedded methods B. Variable declarations. A: You can declare local functions inside a method or a job in X++. A local function can contain code that would otherwise have to be duplicated in two or more places within your method. B: The following X++ job demonstrates that the print statement automatically converts any…

inventory configuration

Question

You need to identify which elements a job can contain. Which two elements should you identify? Each correct answer presents part of the solution.

Options

  • AEmbedded methods
  • BVariable declarations
  • CClass instantiations
  • DEvents

How the community answered

(31 responses)
  • A
    81% (25)
  • C
    6% (2)
  • D
    13% (4)

Explanation

A: You can declare local functions inside a method or a job in X++. A local function can contain code that would otherwise have to be duplicated in two or more places within your method. B: The following X++ job demonstrates that the print statement automatically converts any data type to a string. To create a job in the AOT, right-click the Jobs node, and then click New Job. static void PrintJob2(Args _args) str s1 = "Hello"; utcDateTime udt3 = DateTimeUtil::utcNow(); Dialog dlog4 = new Dialog();

Topics

#X++ jobs#variable declarations#embedded methods#code structure

Community Discussion

No community discussion yet for this question.

Full MB6-704 Practice