Friday, May 4, 2018

Get Oracle 1Z0-148 VCE Exam Simulator With Updated Questions & Answers

The Oracle Database 12c Advanced PL/SQL exam 1Z0-148 is a 110-minute assessment with 75 questions. Likewise, the Oracle 1Z0-148 Oracle Database Application Development certification exam verifies the candidate's acquaintance and core understanding with the Database Administration, Oracle Advanced PL/SQL Development and SQL ServerOracle 110 exam is associated with the Oracle Database Application Development Certification. Oracle 110 Exam helps you to upgrade credential, as the content is aligned with the exam topics;
  • Designing PL/SQL Code,
  • Identify guidelines for cursor design,
  • Use cursor variables.

Exam Code: 1Z0-148
Exam Name: Oracle Database 12c Advanced PL/SQL
Exam Vendor: Oracle


Question: 1
The STUDENTS table exists in your schema.
Examine the DECLARE section of a PL/SQL block:
Which two blocks are valid?

A. BEGINOPEN cursor3 FOR SELECT * FROM students;cursor1 :=cursor3;END;
B. BEGINOPEN stcur;cursor1 :=stcur;END;
C. BEGINOPEN cursor1 FOR SELECT * FROM students;stcur :=cursor1;END;
D. BEGINOPEN stcur;cursor3 :=stcur;END;
E. BEGINOPEN cursor1 FOR SELECT * FROM students;cursor2 :=cursor1;END;

Answer: D-E   

Question: 2 
Which two subprograms will be created successfully?

A. CREATE FUNCTION p4 (y pkg.tab_typ) RETURN pkg.tab_typ ISBEGINEXECUTE IMMEDIATE ‘SELECT pdt_id, pdt_name FROM TABLE (:b)’BULT COLLECT INTO pkg.x USING y;RETURN pkg.x;END p4;
B. CREATE PROCEDURE p1 (y IN OUT pkg.tab_typ) ISBEGINEXECUTE IMMEDIATE ‘SELECT f (:b) FROM DUAL’ INTO y USING pkg.x;END p1;
C. CREATE PROCEDURE p2 (v IN OUT VARCHAR2) ISBEGINEXECUTE IMMEDIATE ‘SELECT f (:b) FROM DUAL’ INTO v USING pkg.x;END p2;
D. CREATE FUNCTION p3 RETURN pkg. tab_typ ISBEGINEXECUTE IMMEDIATE ‘SELECT f (:b) FROM DUAL’ INTO pkg.x;END p3;
E. CREATE PROCEDURE p5 (y pkg. rec_typ) ISBEGINEXECUTE IMMEDIATE ‘SELECT pdt_name FROM TABLE (:b)’ BULK COLLECT INTO y USING pkg.x;END p5;

Answer: A-C   

Question: 3
Examine the section of code taken from a PL/SQL program:
PLSQL_OPTIMIZE_LEVEL PARAMETER is set to 3.
Which two statements are true?

A. Calls to TESTPROC will always be inlined as it is compiled with PLSQL_OPTIMIZE_LEVEL=3.
B. Calls to TESTPROC are never inlined in both lines commented as Call1 and Call 2.
C. Calls to TESTPROC are not inlined in the line commented as Call 1.
D. Calls to TESTPROC are inlined in both lines commented as Call 1 and Call 2.
E. Calls to TESTPROC might be inlined in the line commented as Call 2.

Answer: A-E   

Question: 4
Which statement is true about the DBMS_PARALLEL_EXECUTE package?

A. DBMS_PARALLEL_EXECUTE is an SYS-owned package and can be accessed only by a user with DBA privileges.
B. To execute chunks in parallel, users must have CREATE JOB system privilege.
C. No specific system privileges are required to create or run parallel execution tasks.
D. Only DBAs can create or run parallel execution tasks.
E. Users with CREATE TASK privilege can create or run parallel execution tasks.

Answer: B   

Question: 5 
Which two statements are true regarding edition-based redefinition (EBR)?

A. There is no default edition defined in the database.
B. EBR does not let you upgrade the database components of an application while in use.
C. You never use EBR to copy the database objects and redefine the copied objects in isolation.
D. Editions are non-schema objects.
E. When you change an editioned object, all of its dependents remain valid.
F. Tables are not editable objects.

Answer: E-F   

Question: 6
Which two blocks of code execute successfully?

A. DECLARESUBTYPE new_one IS BINARY_INTERGER RANGE 0..9;my_val new_one;BEGINmy_val :=0;END;
B. DECLARESUBTYPE new_string IS VARCHAR2 (5) NOT NULL;my_str_new_string;BEGINmy_str := ‘abc’;END;
C. DECLARESUBTYPE new_one IS NUMBER (2, 1);my_val new_one;BEGINmy_val :=12.5;END;
D. DECLARESUBTYPE new_one IS INTEGER RANGE 1..10 NOT NULL;my_val new_one;BEGINmy_val :=2;END;
E. DECLARESUBTYPE new_one IS NUMBER (1, 0);my_val new_one;BEGINmy_val := -1;END;

Answer: A-D   

Question: 7
Which statement is correct about DBMS_LOB.SETOPTIONS and DBMS_LOB.GETOPTIONS for SecureFiles?

A. DBMS_LOB.GETOPTIONS can only be used for BLOB data types.
B. DBMS_LOB.SETOPTIONS can perform operations on individual SecureFiles but not an entire column.
C. DBMS_LOB. SETOPTIONS can set option types COMPRESS, DUPLICATE, and ENCRYPT.
D. If a table was not created with compression specified in the store as securefile clause then DBMS_LOB.SETOPTIONS can be used to enable it later.

Answer: D   

Question: 8 
You are designing and developing a complex database application built using many dynamic SQL statements. Which option could expose your code to SQL injection attacks?

A. Using bind variables instead of directly concatenating parameters into dynamic SQL statements
B. Using automated tools to generate code
C. Not validating parameters which are concatenated into dynamic SQL statements
D. Validating parameters before concatenating them into dynamic SQL statements
E. Having excess database privileges

Answer: A   

Question: 9 
Examine this code executed as SYS:
Examine this code executed as SPIDER and the error message received upon execution:
What is the reason for this error?

A. The procedure needs to be granted the DYNAMIC_TABLE_ROLE role.
B. The EXECUTE IMMEDIATE clause is not supported with roles.
C. Privileges granted through roles are never in effect when running definer’s rights procedures.
D. The user SPIDER needs to be granted the CREATE TABLE privilege and the procedure needs to be granted the DYNAMIC_TABLE_ROLE

Answer: C   

Question: 10 
Which codes execute successfully?

A. CREATE PACKAGE pkg ASTYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER);PROCEDURE calc_price (price_rec IN OUT rec_typ);END pkg;/CREATE PACAKGE BODY pkg ASPROCEDURE calc_price (price_rec IN OUT rec_typ) ASBEGINprice_rec.price := price_rec.price + (price_rec.price * price_rec.inc_pct)/100;END calc_price;END pkg;/DECLARE1_rec pkg. rec_typ;BEGIN1_rec_price :=100;1_rec.inc_pct :=50;EXECUTE IMMEDIATE ‘BEGIN pkg. calc_price (:rec); END;’ USING IN OUT 1_rec;END;
B. CREATE PACKAGE pkg ASTYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER);END pkg;/CREATE PROCEDURE calc_price (price_rec IN OUT pkg. rec_typ) ASBEGINprice_rec.price := price_rec.price + (price_rec.price * price_rec.inc_pct)/100;END/DECLARE1_rec pkg.rec_typ;BEGINEXECUTE IMMEDIATE ‘BEGIN calc_price (:rec); END;’ USING IN OUT 1_rec (100, 50);END;
C. CREATE PACKAGE pkg ASTYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER);END pkg;/CREATE PROCEDURE calc_price (price_rec IN OUT pkg. rec_typ) ASBEGINprice_rec.price := price_rec.price + (price_rec.price * price_rec.inc_pct)/100;END ;/DECLARE1_rec pkg. rec_typ;BEGIN1_rec_price :=100;1_rec.inc_pct :=50;EXECUTE IMMEDIATE ‘BEGIN calc_price (1_rec); END;’;END;
D. DECLARETYPE rec_typ IS RECORD (price NUMBER, inc_pct NUMBER);1_rec rec-typ;PROCEDURE calc_price (price_rec IN OUT rec_typ) ASBEGINprice_rec.price := price-rec.price+ (price_rec.price * price_rec.inc_pct)/100;END;BEGIN1_rec_price :=100;1_rec.inc_pct :=50;EXECUTE IMMEDIATE ‘BEGIN calc_price (:rec); END;’ USING IN OUT 1_rec;END;

Answer: B

For More Questions And Answers Click this URL:


3 comments:

  1. Thanks Dumpsforsure.com for putting all the exam preparation together. I use to find difficult to pass the 2V0-642 Dumps, but with their dumps everything seemed possible. I prepared for my exam without going through different guides and books. All material was provided in one place in one PDF file. Their test engine is a great way to know about your weak areas so that you may tackle them easily. Thank you Dumpsforsure.com

    ReplyDelete
  2. No study material could have been as helpful as Oracle 1z0-148 dumps was during my preparation. I memorized the questions and answers in this guidebook and got a full understanding of the field. Almost all the questions in the final test were from Oracle 1z0-148 dumps.

    ReplyDelete
  3. 156-915.80 dumps helped me to clear my concepts about each exam topic and I solved all the questions in the final. I also got experts’ directions at Examforsure. It became so easier for me to ace my IT certification with 156-915.80 Dumps 2022

    ReplyDelete

Tips to Pass 101-01 Riverbed VCE Exam Software With Updated Questions For Guaranteed Success

The Riverbed Certified Solutions Associate exam 101-01 is a 75 minute assessment with 231 questions. Likewise, the Riverbed 101-01 Rive...