exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 86 discussion

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

You execute this query:

SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr')
FROM DUAL;

What is the result?

  • A. It executes successfully but does not return any result.
  • B. It returns the date for the first Monday of the next month.
  • C. It returns the date for the last Monday of the current month.
  • D. It generates an error.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Bissto
5 months ago
Selected Answer: B
B. It returns the date for the first Monday of the next month. Explanation: LAST_DAY(SYSDATE): This function returns the last day of the current month. NEXT_DAY(LAST_DAY(SYSDATE), 'MON'): This function returns the next Monday after the date provided (which in this case is the last day of the current month). Since the last day of the current month is used, NEXT_DAY will return the first Monday of the next month. TO_CHAR(..., 'dd "Monday for" fmMonth rrrr'): This formats the date to display the day (dd), followed by the string "Monday for", followed by the full month name (with fm removing any leading spaces), and finally the year (rrrr). Thus, the query returns the date for the first Monday of the next month formatted as specified.
upvoted 1 times
...
ArslanAltaf
9 months, 2 weeks ago
B correct. D is wrong. output is "06 Monday for May 2024"
upvoted 1 times
...
deepzsiva
1 year ago
Selected Answer: B
Answer is B. Tested.
upvoted 3 times
...
zangado
1 year, 1 month ago
Selected Answer: D
There should be 'Monday' instead of 'MON'
upvoted 2 times
ogi33
9 months, 3 weeks ago
The argument char must be a day of the week in the date language of your session, either the full name or the abbreviation https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/NEXT_DAY.html#GUID-01B2CC7A-1A64-4A74-918E-26158C9096F6
upvoted 1 times
...
zibby92
1 year, 1 month ago
https://www.examtopics.com/discussions/oracle/view/27077-exam-1z0-082-topic-1-question-86-discussion/ It works fine
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