exam questions

Exam 1z0-829 All Questions

View all questions & answers for the 1z0-829 exam

Exam 1z0-829 topic 1 question 3 discussion

Actual exam question from Oracle's 1z0-829
Question #: 3
Topic #: 1
[All 1z0-829 Questions]

Daylight Saving Time (DST) is the practice of advancing clocks at the start of spring by one hour and adjusting them backward by one hour in autumn.
Considering that in 2021, DST in Chicago (Illinois) ended on November 7th at 2 AM, and given the fragment:

What is the output?

  • A. true
    true
  • B. false
    true
  • C. true
    false
  • D. false
    false
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Uteman
5 months, 4 weeks ago
C is the correct answer
upvoted 1 times
...
xplorerpj
6 months, 2 weeks ago
C is the correct answer //zdt : 2021-11-07T01:30-05:00[America/Chicago] //anHourLater : 2021-11-07T01:30-06:00[America/Chicago] //zdt.Offset : -05:00 //anHourLater.Offset: -06:00
upvoted 1 times
...
minhdev
7 months, 3 weeks ago
C is correct answer
upvoted 1 times
minhdev
7 months, 3 weeks ago
On Now, 1:30 + 1 = 1:30 in the difference timezone
upvoted 1 times
...
...
james2033
10 months, 2 weeks ago
Selected Answer: C
package q03; import java.time.LocalDate; import java.time.LocalTime; import java.time.ZoneId; import java.time.ZonedDateTime; public class Q03 { public static void main(String[] args) { ZoneId zoneId = ZoneId.of("America/Chicago"); ZonedDateTime zdt = ZonedDateTime.of( LocalDate.of(2021, 11, 7), LocalTime.of(1, 30), zoneId ); ZonedDateTime anHourLater = zdt.plusHours(1); System.out.println(zdt.getHour() == anHourLater.getHour()); System.out.print(zdt.getOffset().equals(anHourLater.getOffset())); } } // Result: // true // false
upvoted 2 times
...
Samps
10 months, 3 weeks ago
Selected Answer: C
C. true, false
upvoted 1 times
...
Samps
10 months, 3 weeks ago
C. true, false
upvoted 1 times
...
gavishnu
11 months, 2 weeks ago
true, false
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