A developer submits code for a quality assurance review. Several lines of code use the var data type. You need to validate the segments for the correct X++ structure. Which code statement will pass validation?
A.
var var1 = systemDataGet(); var1 = var1 ? today():ג€Not todayג€;
A and C are both incorrect because of using '=' instead 0f '=='. All answers are wrong to me! I selected c because it doesn't let me submit my comment without selecting one!
I suppose the first option was meant to look like this:
var var1 = systemDateGet(); var1 = var1 ? today() : "Not today";
Then Visual Studio shows the following error: cannot implicitly convert from type 'str' to type 'date'.
So the correct answer is C.
This section is not available anymore. Please use the main Exam Page.MB-500 Exam Questions
Log in to ExamTopics
Sign in:
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.
UR_7
2 months, 3 weeks ago8933e4c
7 months agojuversg
1 year, 6 months agojorgkpo
1 year, 11 months agomakarsharl
2 years, 2 months ago