READ Free Dumps For Oracle- 1z0-001
Question ID 8102 | Examine the code: SET SERVER OUTPUT ON DECLARE v_char_val varchar2(100); BEGIN v_char_val:= 'Hello World', DBMS_OUTPUT.PUT_LINE(v_char_val); END SET SERVER OUTPUT OFF This code is stored in a script file name "myproc,sql". Which statement executes the code in the script file? |
Option A | Myproc.sql |
Option B | RUN myproc,sql |
Option C | START myproc.sql |
Option D | EXECUTE myproc.sql |
Option E | BEGIN myproc.sql END; |
Correct Answer | C |
Question ID 8103 | Examine this block F code Set server 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 f V_found is' || V_found); DBMS_OUTPUT.PUT_LINE ('value f V_found is' || V_found); Y:20; END DBMS_OUTPUT.PUT_LINE ('value f V_found is' || V_found); DBMS_OUTPUT.PUT_LINE ('value f Y is' || TO_CHAR (Y); END Why does this code produce an error when executed? |
Option A | The value f V_found cannot be YES. |
Option B | Variable V_found is declared at more than one location. |
Option C | Variable Y is declared in the inner block and referenced in the outer block. |
Option D | Variable V_sal is declared in the outer block and referenced in the inner block. |
Correct Answer | C |