nerdexam
Oracle

1Z0-146 · Question #75

1Z0-146 Question #75: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-146 to reveal the answer and full explanation for question #75. The question stem and answer options stay visible for context.

Question

You created a procedure as follows: CREATE OR REPLACE PROCEDURE query_prod(twhr VARCHAR2) IS stmt VARCHAR2(100); pname VARCHAR2(20); BEGIN stmt:='SELECT product_name FROM products WHERE product_id=:2'; EXECUTE IMMEDIATE stmt INTO pname USING twhr; DBMS_OUTPUT.PUT_LINE(pname); END; / View the Exhibit to examine the structure of PRODUCTS table. Which statement is true about the procedure?

Exhibit

1Z0-146 question #75 exhibit

Options

  • AIt produces an error when invoked.
  • BIt can be invoked only from a PL/SQL block.
  • CIt reduces the chances of SQL injection by using bind arguments.
  • DThe values for bind arguments remain persistent in the session after the execution of the procedure.

Unlock 1Z0-146 to see the answer

You've previewed enough free 1Z0-146 questions. Unlock 1Z0-146 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-146 Practice