[August 2019] OCP latest version of the 071 certification exams test original topic - question 21

choose two

In the PROMOTIONS table, the PROMO_BEGTN_DATE columm is of datatype DATE and the default date format is DD-MON-RR.

Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a queny?

A) TONUMBER(PROMO BEGIN_DATE) - 5 will return number

B) TO_DATE(PROMO_BEGIN_DATE * 5) will return a date

C) PROMO_BEGIN_DATE - SYSDATE will return a number.

D) PROMO_BEGIN_DATE - 5 will return a date.

E) PROMO_BEGIN_DATE - SYSDATE will return an error.

Answer:CD

(Analysis: This question test is still relatively meaningful, AAnswer: wrong because the date can not be converted to type number; date can not multiply and divide one number, so BAnswer: wrong; but the date type that can add or subtract.)

Guess you like

Origin blog.51cto.com/13854012/2447492