Oracle Mock Final

18 Questions | Attempts: 174
Share
Please wait...
Question 1 / 18
0 %
0/100
Score 0/100
1. You need to remove database trigger BUSINESS_RULE. Which command do you use to remove the trigger in the SQL*Plus environment?
Submit
Please wait...
About This Quiz
Oracle Quizzes & Trivia

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. Examine this procedure CREATE OR REPLACE PROCEDURE ADD_PLAYER (V_ID IN NUMBER, V_LAST_NAME VARCHER2) IS BEGIN INSERT INTO PLAYER(ID,LAST_NAME). VALUES(V_ID,V_LAST_NAME); COMMIT; END; This procedure must invoke the UPD-STAT procedure and pass a parameter. Which statement will successfully invoke this procedure?
Submit
3. Which code successfully calculates tax?
Submit
4. Which type of argument passes a value from a calling environment?
Submit
5. You need to create a trigger on the EMP table that monitors every row that is changed and places this information into the AUDIT_TABLE. Which type of trigger do you create?
Submit
6. CREATE OR REPLACE TRIGGER update_emp AFTER UPDATE ON emp BEGIN INSERT INTO audit_table (who, audited) VALUES(USER, SYSDATE); END; You issue an update command on the EMP table that results in changing ten rows. How many rows are inserted into the AUDIT_TABLE?
Submit
7. This statement fails when executed: CREATE OR REPLACE TRIGGER CALC_TEAM_AVG AFTER INSERT ON PLAYER BEGIN INSERT INTO PLAYER_BAT_STAT (PLAYER_ID, SEASON_YEAR,AT_BATS,HITS) VALUES (:NEW.ID, 1997, 0,0); END; To which type must you convert the trigger to correct the error?
Submit
8. Examine this trigger. CREATE OR REPLACE TRIGGER UPD_TEAM_SALARY AFTER INSERT OR UPDATE OR DELETE ON PLAYER FOR EACH ROW BEGIN UPDATE TEAM SET TOT_SALARY=TOT_SALARY+:NEW SALARY. WHERE ID=:NEW:TEAM_ID; You will be adding additional coat later but for now you want the current block to fire when updated the salary column. Which solution should you use to verify that the user is performing an update on the salary column?
Submit
9. The QUERY_PRODUCT procedure directly references the product table. There is a NEW_PRODUCT_VIEW view created based on the NOT NULL columns of the table. The ADD_PRODUCT procedure updates the table indirectly by the way of NEW_PRODUCT_VIEW view. Under which circumstances does the procedure ADD_PRODUCT get invalidated but automatically get complied when invoked?
Submit
10. Under which situation do you create a server side procedure?
Submit
11. The add_player , upd_player_stat , and upd_pitcher_stat procedures are grouped together in a package. A variable must be shared among only these procedures. Where should you declare this variable?
Submit
12. Examine this package CREATE OR REPLACE PACKAGE discounts IS G_ID NUMBER:=7839; DISCOUNT_RATE NUMBER O. 00; PROCEDURE DISPLAY_PRICE (V_PRICE NUMBER); END DISCOUNTS; / CREATE OR REPLACE PACKAGE BODY discounts IS PROCEDURE DISPLAY_PRICE (V_PRICE_NUMBER) IS BEGIN DBMS_OUTPUT.PUT_LINE('DISCOUNTED||2_4 (V_PRICE*NVL(DISCOUNT_RATE, 1))) END DISPLAY_PRICE; BEGIN DISCOUNT_RATE;=0. 10; END DISCOUNTS; / Which statement is true?  
Submit
13. What happens during the execute phase with dynamic SQL for INSERT, UPDATE, and DELETE operations?
Submit
14. Which three are valid ways to minimize dependency failure? (Choose three.)
Submit
15. Which two statements about packages are true? (Choose two.)
Submit
16. Which two statements about the overloading feature of packages are true? (Choose two)
Submit
17. All users currently have the INSERT privileges on the PLAYER table. You want only your users to insert into this table using the ADD_PLAYER procedure. Which two actions must you take? (Choose two)
Submit
18. Which two statements are true about associative arrays and varrays? (Choose two.)
Submit
View My Results

Quiz Review Timeline (Updated): Jan 24, 2013 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 24, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 11, 2011
    Quiz Created by
    Unrealvicky
Cancel
  • All
    All (18)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
You need to remove database trigger BUSINESS_RULE. Which command do...
Examine this procedure CREATE OR REPLACE PROCEDURE ADD_PLAYER (V_ID IN...
Which code successfully calculates tax?
Which type of argument passes a value from a calling environment?
You need to create a trigger on the EMP table that monitors every row...
CREATE OR REPLACE TRIGGER update_emp AFTER UPDATE ON emp BEGIN INSERT...
This statement fails when executed: CREATE OR REPLACE TRIGGER ...
Examine this trigger. CREATE OR REPLACE TRIGGER UPD_TEAM_SALARY AFTER...
The QUERY_PRODUCT procedure directly references the product table....
Under which situation do you create a server side procedure?
The add_player , upd_player_stat , and upd_pitcher_stat procedures are...
Examine this package CREATE OR REPLACE PACKAGE discounts IS G_ID...
What happens during the execute phase with dynamic SQL for INSERT, ...
Which three are valid ways to minimize dependency failure? (Choose ...
Which two statements about packages are true? (Choose two.)
Which two statements about the overloading feature of packages are...
All users currently have the INSERT privileges on the PLAYER table....
Which two statements are true about associative arrays and varrays?...
Alert!

Advertisement