E and F are the correct answers: tested and confirmed:
SELECT TO_DATE(TO_CHAR(SYSDATE, 'MM/DD/YYYY'), 'MM/DD/YYYY') FROM DUAL;
SELECT TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'dd-mon-yyyy') FROM DUAL;
E & B will show year forma in 4 digits only if you consider B has no typing error..the string has to be quoted. SELECT TO_CHAR(SYSDATE, 'MM/DD/YYYY') FROM DUAL;
In answer it is written MM/DD/YYYY without quotes.
Weird.
Imported all in to Oracle apex and got the following results:
SELECT TO_DATE(SYSDATE, 'RRRR-MM-DD') FROM DUAL; ---- ORA-01843: not a valid month
SELECT TO_CHAR(SYSDATE, MM/DD/YYYY) FROM DUAL; ----- Error at line 1/31: ORA-00904: "YYYY": invalid identifier. This answer is missing single quotes around the format, otherwise it would be correct.
SELECT TO_DATE(ADD_MONTHS(SYSDATE, 6), 'dd-mon-yyyy') FROM DUAL; ------ ORA-01843: not a valid month
SELECT TO_CHAR(ADD_MONTHS(SYSDATE, 6)) FROM DUAL; ------ 09/15/2023 and thus is correct.
SELECT TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'dd-mon-yyyy') FROM DUAL; ------ 15-sep-2023 and thus is also correct.
SELECT TO_DATE(TO_CHAR(SYSDATE, 'MM/DD/YYYY'), 'MM/DD/YYYY') FROM DUAL; ------- 03/15/2023 and thus is also correct?|
This question is just a mess...
This section is not available anymore. Please use the main Exam Page.1z0-071 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.
f4a3ee3
1 day, 22 hours agoThameur01
6 months, 1 week agosalander71
9 months, 2 weeks agoShahedOdeh
10 months agoArslanAltaf
1 year, 1 month agoogi33
1 year, 3 months agohmatinnn
1 year, 4 months agodeepzsiva
1 year, 5 months agolucemqy
1 year, 8 months agojm9999
1 year, 9 months agozouve
2 years agoCecilia_Soso
2 years, 2 months agoMooonLight
2 years, 2 months agoRik92
2 years, 4 months agoogi33
1 year, 3 months agoyanoolthecool
1 year, 6 months agokesammy9
2 years, 4 months agojfc1
2 years, 5 months agocadcadley
2 years, 6 months ago