Microsoft Dynamics 365: Finance and Operations Apps Developer — Question 55

You are a Dynamics 365 Finance developer.

You create an integer variable named inventQantity.

You need to display the value from inventQantity in an info statement.

Which code segment can you use?

Answer options

Correct answer: A

Explanation

The correct answer is A because the int2str function converts the integer value of inventQantity to a string format, which is necessary for the info statement to display it correctly. Option B is incorrect as it attempts to display an integer directly, which is not valid for the info statement in this context. Option C is incorrect because it contains a syntax error due to a missing closing parenthesis.