nerdexam
Microsoft

MB-500 · Question #28

You are a Dynamics 365 Finance developer. You create an integer variable named totalSales. You need to display the value from totalSales in an info statement. Which three code segments can you use?…

The correct answer is A. Option A C. Option C D. Option D. A: int2Str converts an integer to the equivalent string. C: any2Str converts an anytype value to a str value. The anytype data type is a placeholder for for (int i = 0; i < 10; i++) info(strfmt("i is %1", i))…

Develop business logic

Question

You are a Dynamics 365 Finance developer. You create an integer variable named totalSales. You need to display the value from totalSales in an info statement. Which three code segments can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Exhibit

MB-500 question #28 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D
  • EOption E

How the community answered

(42 responses)
  • A
    86% (36)
  • B
    10% (4)
  • E
    5% (2)

Explanation

A: int2Str converts an integer to the equivalent string. C: any2Str converts an anytype value to a str value. The anytype data type is a placeholder for for (int i = 0; i < 10; i++) info(strfmt("i is %1", i)); https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-variables-data- https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data- primitive#anytype

Topics

#X++ syntax#info statement#integer to string conversion#basic output

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice