exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 2 question 11 discussion

Actual exam question from Microsoft's 70-487
Question #: 11
Topic #: 2
[All 70-487 Questions]

DRAG DROP -
You need to parse flight information from Blue Yonder Airlines. The content of the XML file is shown below.

Some airlines do not specify the timezone of the arrival time. If the timezone is not specified, then it should be interpreted per the business requirements.
You need to implement the LoadFlights() and Parse() methods of the BlueYonderLoader class.
What should you do? (To answer, drag the appropriate code segments to the correct location in the answer area. Each segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

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
MaverickCalibre
Highly Voted 5 years ago
DateTimeOffset.Parse(dateString, null, DateTimeStyles.AssumeUniversal)
upvoted 29 times
...
tiger25
Highly Voted 4 years, 11 months ago
Clearly second is "AssumeUniversal"
upvoted 11 times
...
sti88
Most Recent 4 years, 2 months ago
The provided answer is correct, it should be AdjustToUniversal because we want to define this time as UTC regardless if local timezone was provided. https://stackoverflow.com/questions/12787368/c-sharp-datetime-parse-issue
upvoted 1 times
...
Jobair
4 years, 3 months ago
In the question, it is mentioned that "If a time zone is not specified, then it should be interpreted as Coordinated Universal Time", and AssumeUniversal should be used for "If no time zone is specified in the parsed string, the string is assumed to denote a UTC. " check the link mentioned by @gclopes
upvoted 2 times
...
gclopes
5 years ago
https://docs.microsoft.com/en-us/dotnet/api/system.globalization.datetimestyles?view=netframework-4.8
upvoted 2 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