Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 112

Given the code fragment:

Assume that the value of now is 6:30 in the morning.

What is the result?

    Correct Answer: C

    The code calculates the difference between the current time (`now`) and the office start time (`office_start`). Given that `now` is 6:30 AM and `office_start` is 7:30 AM, the condition `office_start.isAfter(now)` is true, so the calculation is done in minutes. The difference between 6:30 AM and 7:30 AM is 60 minutes. Therefore, the result is 60.

Discussion
SigamaniOption: C

Answer is C (if we replace MINUTES & HOURS with ChoronoUnit.MINUTES & ChronoUnit.HOURS respectively)

steefaandOption: C

C is correct.