READ Free Dumps For Oracle- 1z0-001
Question ID 8069 | Examine this block of code: SET OUTPUT ON Declare X NUMBER; V_SAL NUMBER; V_found VARCHAR2(10):='TRUE'; Begin X:=1; V_sal := 1000; Declare V_found VARCHAR2(10); Y NUMBER Begin IF (V_Sal>500) THEN V_found := 'YES'; END IF; DBMS_OUTPUT.PUT_LINE('Value of V_found is '|| V_Sal); DBMS_OUTPUT.PUT_LINE('Value of V_Sal is '|| TO_CHAR (V_Sal)); Y:=20; END; DBMS_OUTPUT.PUT_LINE('Value of V_found is' || V_found); DBMS_OUTPUT.PUT_LINE('Value of Y is' || TO_CHAR(Y)); END; SET server OUTPUT if What is the result of executing this block of code? |
Option A | PLS-00201: identifier 'Y' must be declared. |
Option B | Value of V_found is YES Value of V_sal is 1000 Value of V_found is TRUE |
Option C | Value of V_found is YES Value of V_found is 1000 Value of V_found is TRUE Value of Y is 20 |
Option D | PLS-00201: identifier 'V_sal' must be declared PLS-00201: identifier 'Y' must be declared |
Option E | Value of V_found is YES Value of V_sal is 1000 Value of V_found is TRUE Value of Y is 20 |
Correct Answer | A |
Question ID 8070 | You need to store currency data and you know that data will always have two digits to the right of the decimal points. However the number of digits to the left of the decimal place will vary greatly. Which data type would be most appropriate to store the data? |
Option A | NUMBER |
Option B | NUMBER(T) |
Option C | LANG |
Option D | LANGRA |
Correct Answer | A |