Oracle 1z Oracle 1z0-101 Develop pl/ sql program units. Practice Test. Version

Similar documents
Oracle 1Z Develop PL/SQL Program Units. Download Full Version :

Oracle Exam 1z0-147 oracle9i program with pl/sql Version: 5.0 [ Total Questions: 132 ]

1Z0-147.v Number: 1Z0-147 Passing Score: 800 Time Limit: 120 min File Version:

Exam Name: Develop pl/sql program units

Exam : 1Z Title : Oracle 9i: Program with PL/SQL

Oracle 1Z0-147 Exam Questions & Answers

Exam : 1Z : Oracle 9i: Program with PL/SQL. Title :

Exam Name: Oracle9i program with pl/sql Exam Type: Oracle Exam Code: 1Z0-147 Total Questions: 132

Oracle EXAM - 1Z Program with PL/SQL. Buy Full Product.

Exam : 1Z Title : Oracle 9i: Program with PL/SQL. Ver :

BraindumpStudy. BraindumpStudy Exam Dumps, High Pass Rate!

Fravo.com. Certification Made Easy. World No1 Cert Guides Oracle 9i: Program with PL/SQL Exam 1Z Edition 1.0

Pl SQL Vendor Exam Questions. Exam Code: 1Z0-147

When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger?

Oracle 1Z Oracle9i: Program with PL/SQL. Download Full Version :

1Z0-101 develop pl/sql program units

Question: Which statement would you use to invoke a stored procedure in isql*plus?

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo

Oracle 1z0-101 PROGRAM UNITS. Version 3.0

Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ]

Oracle PLSQL Training Syllabus

Oracle Database: Program with PL/SQL

Oracle Database: Program with PL/SQL Ed 2

Oracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days

Conditionally control code flow (loops, control structures). Create stored procedures and functions.

Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led

ADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine.

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

Oracle - Oracle Database: Program with PL/SQL Ed 2

5 Integrity Constraints and Triggers

2. Programming written ( main theme is to test our data structure knowledge, proficiency

ORACLE Job Placement Paper. Paper Type : General - other

Oracle Developer Track Course Contents. Mr. Sandeep M Shinde. Oracle Application Techno-Functional Consultant

RDBMS Using Oracle. Use of IN OUT

IZ0-144Oracle 11g PL/SQL Certification (OCA) training

Oracle EXAM 1Z0-144 Oracle Database 11g: Program with PL/SQL

1Z0-144.v Number: 1Z0-144 Passing Score: 800 Time Limit: 120 min File Version:

Oracle Database 11g: Program with PL/SQL Release 2

Introduction p. 1 The Logical and Physical View of Tables p. 1 Database Types p. 4 NULLs p. 6 DDL and DML Statements p. 7 Column and Table Constraint

Oracle Database: Program with PL/SQL

Now, we can refer to a sequence without having to use any SELECT command as follows:

Oracle Database 11g: Program with PL/SQL

Oracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus

Oracle EXAM - 1Z Oracle Database 11g: Program with PL/SQL. Buy Full Product.

OVERVIEW OF THE TYPES OF PL/SQL BLOCKS:

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://

Active Databases Part 1: Introduction CS561

Chapter 1 CONTROL STRUCTURES. SYS-ED/ Computer Education Techniques, Inc.

ORACLE VIEWS ORACLE VIEWS. Techgoeasy.com

1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL

Exam Name: Oracle Database 11g: Program with PL/SQL

New York Oracle Users Group. September 26, 2002 New York, NY

5. Single-row function

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Introduction to Computer Science and Business

Question No : 1 Which statement is true about triggers on data definition language (DDL) statements?

Database Programming with PL/SQL

Database Programming with PL/SQL

SQL IN PL/SQL. In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77

Question Bank PL/SQL Fundamentals-I

PL/SQL. Exception. When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number

The Encryption Wizard for Oracle. API Library Reference

ORACLE TRAINING CURRICULUM. Relational Databases and Relational Database Management Systems

Database Programming with PL/SQL

SQL Structured Query Language Introduction

UNIT II PL / SQL AND TRIGGERS

Creating and Managing Tables Schedule: Timing Topic

Contents I Introduction 1 Introduction to PL/SQL iii

Course 492 Supplementary Materials. Mutating Tables

c. Invoke your procedure again, passing a job ID of ST_MAN and a job title of Stock Manager. What happens and why?

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL)

Database Programming with PL/SQL

Lab Assignment 9 CIS 208A PL/SQL Programming and SQL

Trigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired.

2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7

Oracle Database: Program with PL/SQL Ed 2 Erlernen Sie diese leistungsstarken Programmiersprache

GFC_ARCH_MGMT: SEGMENT MANAGEMENT UTILITY PACKAGE

Oracle Class VI. Exception Block Cursors For Loops

SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database.

1Z0-147 Oracle 9i: Program with PL/SQL

Overview of PL/SQL. About PL/SQL. PL/SQL Environment. Benefits of PL/SQL. Integration

DumpLeader. Advance your career with IT Cert! Ensure Success with Money back Guarantee

Downloaded from

Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Proje D2K. CMM (Capability Maturity Model) level Project Standard:- Corporate Trainer s Profile

SQL+PL/SQL. Introduction to SQL

The Encryption Wizard for Oracle. API Library Reference

Spring CS Homework 2 p. 1. CS Homework 2. To practice with PL/SQL stored procedures and functions, and possibly exception handling.

Oracle Database: Introduction to SQL/PLSQL Accelerated

The Oracle Interview consists of two parts. One for Written test Interview and Another one for HR interview.

Part 18: Application Programming II (Stored Procedures,Triggers)

Oracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL]

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle database 11g:advanced pl/sql. Version: Demo

C. Use the TO_CHAR function around SYSDATE, that is, 1_date := TO_CHAR (SYSDATE).

Stored Procedures in MYSQL

Using SQL Developer. Oracle University and Egabi Solutions use only

Oracle PL SQL Training & Certification

Edition-Based Redefinition

SQLLIMS_RECORDS_API: Defines constants and record types used by the other API packages. This package is available as well for end-user use.

Transcription:

Oracle 1z0-101 Oracle 1z0-101 Develop pl/ sql program units Practice Test Version 1.1

QUESTION NO: 1 Which code can you use to ensure that the salary is neither increased by more than 10% at a time nor is it ever decreased? A. CREATE OR REPLACE TRIGGERcheck_sal BEFORE UPDATE OF sal ON emp WHEN (new.sal < old.sal OR new.sal > old.sal * 1.1) RAE_APPLICATION_ERROR ( - 20508, 'Do not decrease salary nor increase by more than 10%'); B. CREATE OR REPLACE TRIGGERcheck_sal AFTER UPDATE OF sal ON emp WHEN (new.sal < old.sal OR -new.sal > old.sal * 1.1) RAE_APPLICATION_ERROR ( - 20508, 'Do not decrease salary nor increase by more than 10%'); C. CREATE OR REPLACE TRIGGERcheck_sal BEFORE UPDATE OF sal ON emp FOR EACH ROW WHEN (new.sal < old.sal OR new.sal > old.sal * 1.1) RAE_APPLICATION_ERROR ( - 20508, 'Do not decrease salary nor increase by more than 10%'); D. ALTER TABLEemp ADD CONSTRAINT ck_sal CHECK (sal BETWEEN sal AND sal*1.1); Answer: C QUESTION NO: 2 Examine this package specification: CREATE OR REPLACE PACKAGE concat_all v_string VARCHAR2(100); 2

PROCEDURE combine (p_num_val NUMBER); PROCEDURE combine (p_date_val DATE); PROCEDURE combine (p_char_val VARCHAR2, p_num_val NUMBER); END concat_all; / Which overloaded COMBINE procedure declaration can be added to this package specification? A. PROCEDUREconcat_all (p_num_val VARCHAR2, p_char_val NUMBER); B. PROCEDURE combine; C. PROCEDUREcombine (p_no NUMBER); D. PROCEDURE combine (p_val_1 VARCHAR2, p_val_2 NUMBER); Answer: B QUESTION NO: 3 Why do stored procedures and functions improve performance? (Choose two.) A. They reduce network round trips. B. They reduce the number of calls to the database and decrease network traffic by bundling commands. C. They reduce the number of calls to the database and decrease network traffic by using the local PL/SQL engine. D. They allow the application to perform high-speed processing locally. E. They postpone PL/SQL parsing until run time. Answer: A,B QUESTION NO: 4 When creating stored procedures and functions, which construct allows you to transfer values to and from the calling environment? A. Boolean variables B. substitution variables C. local variables D. formal arguments Answer: D 3

QUESTION NO: 5 Examine this trigger: CREATE OR REPLACE TRIGGER UPD_TEAM_SALARY AFTER INSERT OR UPDATE OR DELETE ON PLAYER FOR EACH ROW UPDATE TEAM SET TOT_SALARY = TOT_SALARY + :NEW.SALARY WHERE ID = :NEW.TEAM_ID; You will be adding additional code later but for now you only want the current code in the block to fire when updating the salary column. Which function should you use to verify that the user is performing an update on the salary column? A. COLUMN_UPDATE('SALARY') B. UPDATING ('SALARY') C. ROW_UPDATE('SALARY') D. CHANGING('SALARY') Answer: B QUESTION NO: 6 Examine this procedure: CREATE OR REPLACE PROCEDURE INSERT_TEAM (V_ID in NUMBER, V_CITY in VARCHAR2 DEFAULT 'AUSTIN', V_NAME in VARCHAR2) INSERT INTO TEAM (id, city, name) VALUES (v_id, v_city, v_name); COMMIT; Which two statements will successfully invoke this procedure in SQL*Plus? (Choose two.) A. EXECUTE INSERT_TEAM; B. EXECUTE INSERT_TEAM (3,'LONGHORNS'); C. EXECUTE INSERT_TEAM(3,'AUSTIN','LONGHORNS'); D. EXECUTE INSERT_TEAM(3, V_NAME=>'LONGHORNS', V_CITY=>'AUSTIN'); 4

E. EXECUTE INSERT_TEAM (V_ID := 3, V_NAME := 'LONGHORNS', V_CITY := 'AUSTIN'); Answer: C,D QUESTION NO: 7 When creating a function in SQL*Plus, you receive this message: "Warning: Function created with compilation errors." Which command can you issue to see the actual error message? A. SHOW ERRORS B. SHOW FUNCTION_ERROR C. SHOW ALL_ERRORS D. SHOW USER_ERRORS Answer: A QUESTION NO: 8 Which Oracle supplied package allows you to run jobs at user-defined times? A. DBMS_JOB B. DBMS_RUN C. DBMS_PIPE D. DBMS_SQL Answer: A QUESTION NO: 9 Under which situation do you create a server-side procedure? A. when the procedure needs to be used by many client applications accessing several remote databases B. when the procedure needs to be used by many users accessing thesame schema objects on a local database C. when the procedure contains no SQL statements D. when the procedure contains no PL/SQL commands 5

Answer: B QUESTION NO: 10 Which two statements are true? (Choose two.) A. A procedure must have a return data type specified in its declaration. B. A function executes as a PL/SQL statement. C. A procedure must return a value. D. A function is invoked as part of an expression. E. A function must return a value. Answer: D,E QUESTION NO: 11 When creating a function, in which section will you typically find the RETURN keyword? A. HEADER only B. EXECUTABLE AND EXCEPTION HANDLING C. EXECUTABLE AND HEADER D. DECLARATIVE Answer: C QUESTION NO: 12 The ADD_PLAYER procedure inserts rows into the PLAYER table. Which command will show this direct dependency? A. SELECT * FROM USER_DEPENDENCIES WHERE REFERENCED_NAME = 'TABLE'; B. SELECT * FROM USER_DEPENDENCIES WHERE TYPE = 'DIR'; C. SELECT * FROM USER_DEPENDENCIES WHERE REFERENCED_NAME = 'PLAYER'; D. SELECT * FROM USER_DEPENDENCIES WHERE REFERENCED_NAME = 'ADD_PLAYER'; Answer: C 6

QUESTION NO: 13 Examine the trigger: CREATE OR REPLACE TRIGGER Emp_count AFTER DELETE ON Emp_tab FOR EACH ROW DECLARE n INTEGER; SELECT COUNT(*) INTO n FROM Emp_tab; DBMS_OUTPUT.PUT_LINE(' There are now ' n ' employees.'); This trigger results in an error after this SQL statement is entered: DELETE FROM Emp_tab WHERE Empno = 7499; How do you correct the error? A. Change the trigger to a statement-level trigger by removing FOR EACH ROW. B. Remove the DBMS_OUPUT statement because it is not allowed in a trigger. C. Change the trigger type to a BEFORE DELETE. D. Take out the COUNT function because it is not allowed in a trigger. Answer: A QUESTION NO: 14 Examine this package: CREATE OR REPLACE PACKAGE discounts g_id NUMBER := 7839; discount_rate NUMBER := 0.00; PROCEDURE display_price (p_price NUMBER); END discounts; / CREATE OR REPLACE PACKAGE BODY discounts 7

PROCEDURE display_price (p_price NUMBER) DBMS_OUTPUT.PUT_LINE('Discounted ' TO_CHAR(p_price*NVL(discount_rate, 1))); END display_price; discount_rate := 0.10; END discounts; / The SQL*Plus SERVEROUTPUT setting is turned on in your session. You execute the procedure DPLAY_PRICE from SQL*Plus with the command: EXECUTE discounts.display_price (100); What is the result? A. Discounted NULL B. Discounted 0.00 C. Discounted 100 D. Discounted 0.10E.Discounted 0.10 E. Discounted 10 Answer: E QUESTION NO: 15 Examine this procedure: CREATE OR REPLACE PROCEDURE INSERT_TEAM (V_ID in NUMBER, V_CITY in VARCHAR2 DEFAULT 'AUSTIN', V_NAME in VARCHAR2) INSERT INTO TEAM (id, city, name) VALUES (v_id, v_city, v_name); COMMIT; Which two statements will successfully invoke this procedure in SQL*Plus? (Choose two.) A. EXECUTE INSERT_TEAM(3, V_NAME=>'LONGHORNS', V_CITY=>'AUSTIN'); B. EXECUTE INSERT_TEAM (V_ID := 3, V_NAME := 'LONGHORNS', V_CITY := 'AUSTIN'); 8

C. EXECUTE INSERT_TEAM(3,'AUSTIN','LONGHORNS'); D. EXECUTE INSERT_TEAM (3,'LONGHORNS'); E. EXECUTE INSERT_TEAM; Answer: A,C QUESTION NO: 16 Which statement is true? A. Server-side procedures are stored in script files on the server. B. Server-side procedures are visible in the SERVER_SOURCE dictionary view. C. Server-side procedures are visible in the SERVER_PROCEDURES data dictionaryview. D. Server-side procedures are visible in the ALL_SOURCE dictionary view. Answer: D QUESTION NO: 17 Examine this procedure: CREATE OR REPLACE PROCEDURE ADD_PLAYER (V_ID IN NUMBER, V_LAST_NAME VARCHAR2) INSERT INTO PLAYER (ID,LAST_NAME) VALUES (V_ID, V_LAST_NAME); COMMIT; This procedure must invoke the UPD_BAT_STAT procedure and pass a parameter. Which statement will successfully invoke this procedure? A. EXECUTE UPD_BAT_STAT(V_ID); B. RUN UPD_BAT_STAT(V_ID); C. START UPD_BAT_STAT(V_ID); D. UPD_BAT_STAT(V_ID); Answer: D 9

QUESTION NO: 18 Examine this package: CREATE OR REPLACE PACKAGE BB_PACK V_MAX_TEAM_SALARY NUMBER(12,2); PROCEDURE ADD_PLAYER(V_ID IN NUMBER, V_LAST_NAME VARCHAR2, V_SALARY NUMBER); END BB_PACK; / CREATE OR REPLACE PACKAGE BODY BB_PACK PROCEDURE UPD_PLAYER_STAT (V_ID IN NUMBER, V_AB IN NUMBER DEFAULT 4, V_HITS IN NUMBER) UPDATE PLAYER_BAT_STAT SET AT_BATS = AT_BATS + V_AB, HITS = HITS + V_HITS WHERE PLAYER_ID = V_ID; COMMIT; END UPD_PLAYER_STAT; PROCEDURE ADD_PLAYER (V_ID IN NUMBER, V_LAST_NAME VARCHAR2, V_SALARY NUMBER) INSERT INTO PLAYER(ID,LAST_NAME,SALARY) VALUES (V_ID, V_LAST_NAME, V_SALARY); UPD_PLAYER_STAT(V_ID,0,0); END ADD_PLAYER; END BB_PACK; You have made a change to the body of the BB_PACK package. What happens when the stand alone procedure VALIDATE_PLAYER_STAT references this package? A. VALIDATE_PLAYER_STAT is notinvalidated.b.validate_player_stat is not invalidated. B. VALIDATE_PLAYER_STAT and BB_PACK areinvalidated.d.validate_player_stat and BB_PACK are invalidated. C. VALIDATE_PLAYER_STAT isinvalidated.c.validate_player_stat is invalidated. D. VALIDATE_PLAYER_STAT cannot recompile and must be recreated. 10