exam questions

Exam MB-500 All Questions

View all questions & answers for the MB-500 exam

Exam MB-500 topic 4 question 10 discussion

Actual exam question from Microsoft's MB-500
Question #: 10
Topic #: 4
[All MB-500 Questions]

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.

  • A. info(int2str(totalSales));
  • B. info(totalSales);
  • C. info(any2str(totalSales));
  • D. info(strfmt("%1", totalSales));
  • E. info(strLine(totalSales, 1));
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️
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 any data type.
D: Example:
void MyMethod()
{
for (int i = 0; i < 10; i++)
{
info(strfmt("i is %1", i));
}
}
Reference:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-variables-data-types https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data-primitive#anytype

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Prollyx
7 months, 1 week ago
Selected Answer: ACD
Correct
upvoted 2 times
...
jebacbig
7 months, 2 weeks ago
Correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago