You are on page 1of 15

Oracle /Dev 2000 Test - 1. 1. Which of the following objects hold the trigger definition of a database trigger a.

User_objects b. User_source c. User_triggers d. User_tables 2. Which of the following is not an advantage of using packages a. b. c. d. Modularity Information hiding Efficient storage Better performance

3. A packaged function can assert maximum purity levels by specifying one of the following in PRAGMA_RESTRICT_REFERENCES a. b. c. d. RNDS, WNDS, WNPS, RNPS, RNPS, RNDS, RNDS, RNDS, WNPS RNPS RNPS WNPS

4. Package P1 refers another package P2. The specification of P2 has been changed and compiled. P1 is not recompiled. What will happen if we try to execute P1 a. The error is existing state of package is discarded b. The package P1 is automatically compiled c. The timestamp of package P2 has been changed 5. What built-in package should be used to schedule batch jobs automatically a. b. c. d. DBMS_JOB DBMS_SQL_JOB DBMS_SCHEDULE DBMS_JOB_SCHEDULE

6. What should be added in the following trigger definition to make it insert a row in t2 table for every insertion in t1 table CREATE OR REPLACE TRIGGER Test_Trig BEFORE INSERT ON T1 BEGIN INSERT INTO T2 VALUES (:old.col1) ; END ; a. b. c. d. for each row for every row for all rows nothing needs to be added

7. How do you add a value to a Check constraint of a column a. b. c. d. alter alter alter It is table t1 modify table t1 modify constraint con1 not possible to constraint con1 add value('M') ; con1 add value ('M') ; add value('M') ; add a value without dropping the existing constraint.

b. MODIFY TABLE emp DROP CONSTRAINT emp_no_pk CASCADE. d. b. b. 3 ename varchar2(30) not null. 13. c. d. All the rows apart from the first 5 rows are displayed All rows are fetched from the table SQL error will occur saying Invalid column name No rows will be selected 11. ALTER TABLE emp DROP PRIMARY KEY CASCADE ALTER TABLE emp DELETE PRIMARY KEY CASCADE. e. c. b. d. What is the datatype used in forms to declare a canvas variable a. 5 deptno number(2) references dept(deptno) 6 )disable primary key Note: Dept table already exists with deptno column as a primary Key. Viewgroup Viewid Viewport Varchar2 Canvas. c. TOOLS_IO ORA_FFI DBMS_OUTPUT TEXT_IO . d. b. c. Executes successfully 10. 4 sal number(7. b. Which following package is used to load data into the table from the flat files a. d. Review the following SQL Statement and find errors if any . a. SQL> create table emp1 2 ( empno number(4) constraint emp_no_pk primary key.2). GET_BLOCK_PROPERTY GET_FORM_PROPERTY GET_RELATION_PROPERTY GET_RELATION_BLOCK_PROPERTY GET_APPLICATION_PROPERTY 12.8. ALTER TABLE emp DROP PRIMARY KEY emp_no_pk CASCADE. D. Error in Error in Error in No Error line 2 line 5 line 6 in the Statement . c. e. c. Which statement would you use to remove the EMP_NO_PK Primary key constraint and all depending constraints from the EMP table a. How can you get a detail block name in a form which has a Master-Details blockusing relations a. What is the result of the query ? SELECT * FROM EMP WHERE ROWNUM > 5 a. 9.

Parent key not found Table EMP is mutating trigger / function may not see it Cannot execute EMP from within stored procedure No errors 15. This is a statement d. END . b. you cannot alter a table after the view is created. a. This is a manipulation row level trigger and therefore cannot reference :new statement level trigger and therefore cannot reference :new row level trigger and therefore cannot perform data manipulation statement level trigger and therefore cannot perform data statements. Why does this statement fail when executed CREATE OR REPLACE TRIGGER CALC_TEAM_AVG AFTER INSERT ON PLAYER BEGIN INSERT INTO PLAYER_BAT_STAT (PLAYER_ID. examine the following sql statement. This is a c. AT_BATS. c. d. True b. 1997. 17. the new column t is not seen. What happens if the SQL statement is issued DELETE FROM EMP WHERE EMPNO = 7499 a. what will happen to the view a. You have now created a view v1 on the table emp. Integrity constraint violated . view becomes invalidated. SEASON_YEAR.e. b. 0) . c. This is a b. END . CREATE SEQUENCE EMP . UTIL_FILE 14. Consider the following trigger CREATE OR REPLACE TRIGGER emp_count AFTER DELETE ON EMP FOR EACH ROW DECLARE N INTEGER .PUT_LINE('There are now ' || n || 'employees') . now alter table emp and add a column t. a. You have a table emp.ID. d. 16. Will the above statement work. 0. HITS) VALUES(:NEW. BEGIN SELECT COUNT(*) INTO n FROM EMP . False . the new column t is seen. DBMS_OUTPUT.

WHEN-VALIDATE-ITEM. Plain Check Separator Magic 23. 4. a. Font size Background color Font Height Font style 19.4. c. POST-TEXT-ITEM WHEN-VALIDATE-ITEM. POST-TEXT-ITEM.4 2. b.1. d. e. c. POST-TEXT-ITEM POST-TEXT-ITEM.1. PRE_FORM WHEN_NEW_FORM_INSTANCE ON_LOGON WHEN_NEW_ITEM_INSTANCE 2. Easier access d. Choose the correct sequence of firing triggers given below 1.4 1. What is the advantage of having program units in a client side library a. Which menu item type would you create with predefined functionality a. d. 3. 2. All the above e. d. c. Which of the following cannot be defined in visual attribute a.3 1. What is the order of firing of triggers written to a text item a.3. b.3.2.2. d. None of the above 20. The library need not be recompiled in case any change is made to the program unit b. WHEN-VALIDATE-ITEM WHEN-VALIDATE-ITEM. Modularity c. c. b. KEY-NEXT-ITEM. c.1. KEY-NEXT-ITEM. b.4 .2.4.3 3. KEY-NEXT-ITEM 21. How will you determine the menu object's current value a. d. Using Using Using Using COPY builtin Direct reference Name_In built in System variable 22. KEY-NEXT-ITEM. b.18.

go_form. c. assign the default assign the default assign the default assign the default not possible value value value value as as as as :sequence. how do you change the editor as WORDPAD? a. b. Which built-in is used to find the user who has currently logged on to the application a.call_form. Title Window size Window state Moveable 25. new_form b. The Sales department requested a report to allow customers to enter a stock number and then display the number of items in inventory.call_form. d. c. When editing a text item.nextval 29. c.24. The customer will be returned to the parameter form. The Layout of each item is a repeating frame that contains one fixed field and an image. It is not possible to change the system editor. You anchor the image to the name field. open_form. open_form. Using forms menu Tools -> Options -> Runtime Options. How do you refer a incremental value of sequence x in a form property palette ? a. Execution of the report will halt. c. new_form. d. Get_form_property() logon() Get_application_property() get_user() 27. When Modal is set to True. b. new_form. c. Page protect on the image. Change FORMS45_EDITOR parameter in the oracle Environment.nextval :x.x x. d. c. open_form. Which pagination property should you select to keep the name field and the image on the same logical page ? a. b.nextval nextval. . The report will execute but no data will be displayed. call_form. 26.x.go_form. the one of the following property is ignored a. e. In the property sheet of the text item change system editor to Wordpad. You can pass parameter of a form when an application executes through a. You use an after parameter form trigger to validate the stock number before the report executes. d. b. run_product. If the trigger returns a false value what will happen ? a. b. 28. You are developing a product report to list the name and the picture of all the products in the PRODUCT table. 30.

d. After you retrieve the cause of a detail report failure using the SRW. c. d. c.log file. Layout Editor Tools Option Object Navigator Reports Properties 35. SRW.5 from the Operating System in the batch mode. e. Select Actions -> Show Log in the reports server window. c. How could you delete the second report from the queue without terminating the first report? a.MESSAGE SRW. Delete the report from the reports. d. Select Actions -> Remove Job in the reports server window. b. Which database object called as the duplicate of the database objects residing in a remote place . Flex Mode on Flex Mode off Confine mode on Confine mode off 34.DISPLAY_ERROR 33. 31. which function or procedure will you use to display the error on the screen? a.GETERR_RUN function. Which executable should You use to accomplish this task? a. c. You create an inventory report using the master/detail group left layout style. In the layout model editor. b.PROGRAM_ABORT SRW. Page protect on the name field. c. d. You execute two reports .BREAK SRW. c. b. OPEN_FORM NEW_FORM CALL_FORM SESSION_FORM RUN_PRODUCT 37.b. Keep with Anchoring Object property on the image d. b. The first report id currently running. You are modifying the sales report and need to alter the default page width setting. d. R25RUN R25DES R25CONV R25MREP 32. In which window will you make the change to the report? a. b. b. d. which setting should you use to ensure that objects within the master repeating frame can not be moved outside their parent? a. 36. You need to execute the employee report in REPORTS Ver 2. Keep with Anchoring Object property on the name field. Click the cancel report button on the reports progress dialog box. c. Which built-in in a form calls another form in a new session a.

You used the TRUNCATE command on EMP table. c. DBMS_OUTPUT UTL_FILE TEXT_IO DBMS_PIPE 2. Views Public Synonyms Snapshots Aliases Clusters 38. The The The All All The TRUNCATE command can be rolled back. set2 Oracle /Dev 2000 Test . storage space held by the EMP table was released. e.a. P1 P1 P1 P1 & & & & P2 P2 P2 P2 are still valid are marked invalid immediately becomes invalid when they are first executed next time become invalid when P3 is executed next time 3.. d. d. b. d. c. What is the necessary condition to build a block (in forms) based on a stored procedure a. What is the word which needs to be added to a database function to invoke it . Which two results are true ? a. . d. c. 1. EMP table constraints have been dropped. EMP table definition does not exixts. Procedures P1 and P2 call another stored procedure P3. d. e. b.2. c. A stored program unit needs to write its output to a text file. DBMS_SQL DBMS_DDL DBMS_PIPE DBMS_JOB 40. EMP table definition still exists. b. b. What built-in package should be used to create tables dynamically a. It It It It should should is not should not have an order by clause be a single record block possible to create a block based on a stored procedure have atleast one OUT variable of type Pl/Sql table or REFCURSOR 39. b. b. EMP table constraints have been disabled. d. c. c. Which of the following oracle packages can be used to accomplish this a. f. If P3 is altered and compiled what happens to procedures P1 & P2 a.

d. Which one is not the pseudocolumn used in select statement ? .10 + comm "Total Compensation" FROM EMP . EMP table definition still exists. sal * 1. d. SELECT sal * 1. b. f. 7. EMP table constraints have been disabled. DBMS_SQL DBMS_DDL DBMS_PIPE DBMS_JOB 6. RECOVERABLE CLUSTER UNRECOVERABLE PARALLEL 8. storage space held by the EMP table was released. Only the new salary of all employees is displayed b. PRAGMA_EXECPTION_INIT PRAGMA_RESTRICT_REFERENCES PRAGMA_FUNCTION_INIT PRAGMA_FUNCTION_REFERENCES 4. c. You used the TRUNCATE command on EMP table. What is the necessary condition to build a block (in forms) based on a stored procedure a. b. b. d. The new salary and total compensation for each employee is displayed c. EMP table definition does not exixts. c. c. b. d. Which option in the CREATE INDEX command may substantially reduce the time required to create a large index. c. c.from SQL*Plus a. The The The All All The TRUNCATE command can be rolled back. EMP table constraints have been dropped. What is the result of this statement a. It It It It should should is not should not have an order by clause be a single record block possible to create a block based on a stored procedure have atleast one OUT variable of type Pl/Sql table or REFCURSOR 5. d. What built-in package should be used to create tables dynamically a.10 "Salary". b. A zero total compensation value is displayed for employees that do not receive a commission 9. Which two results are true ? a. e. The total compensation value is not displayed for employees that do not receive a commission d. a.

b. Alter trigger trigger_name recompile . ROWID ROWNUM LEVEL UNIQUE CURRVAL 10. c. the command used is a. You need to restrict the DML operations on a view by a. c. b. b. b. c. Which built-in in a form calls another form in a new session a. d. b. e. c. Alter trigger trigger_name . None of the above 15. force condition no force condition with_option_check . How can you replace the oracle defined server error messages with your own messages in forms a. e. c. b. d. d. Views Public Synonyms Snapshots Aliases Clusters 14. d.a. b. c. Which of the following is suited correctly to eliminate the duplicate rows a. d. d. e. c. Using update & rownum Using rowid & update Using delete & rowid All the above None of the above 11. d. OPEN_FORM NEW_FORM CALL_FORM SESSION_FORM RUN_PRODUCT 13. e. Using Using Using Using ON_ERROR Trigger irself Error_code & Error_text built-in SQLCODE & SQLERRM builtins Prama_Exeception_Init built-in 12. To recompile a trigger manually. by using grant option. Alter trigger trigger_name compile . Which database object called as the duplicate of the database objects residing in a remote place a.

avg(Sal) avg from emp group by deptno having avg(SAl) >= 1000 order by deptno 1 2 3 4 5 17. b. BEGIN V_dummy := 2 . Sometimes 21. c. c. Can a form have more than one menu attached to it at the same time a.16. No c. e. create or replace force view t1 as select deptno. Plain b. 20. what will take precedence in a call to the procedure in a form a. Check c. b. Examine the following sql statement and find if there is an error and if so in which line 1 2 3 4 5 a. Server procedure takes precedence Local procedure takes precedence Cannot create a program unit with the same name as a backend procedure The server procedure gets invalidated 19. If we have a program unit with the same as a backend procedure. c. d. What is the error DECLARE V_dummy VARCHAR2(1) . GO_BLOCK('BLOCK1') . END .5 a. Which menu item type would you create to group menu claims a. d. a. V_dummy has been assigned twice Cannot assign number to VARCHAR field GO_BLOCK cannot be used in When-validate-Item No Exception has been handled. d. Magic . c. Yes b. Trigger Program Units Property Classes Visual attributes 18. Which of the following cannot be placed in an object group in Forms 4. the following code is written. b. d. In a when-validate-trigger of an item. b. SELECT 'Y' INTO V_dummy FROM DUAL .

delete_parameter_list(listname) c. in the TK23_ICON parameter in oracle environment. d. user_nls_language() 27. You want to simulate a spreadsheet. number. find_language() e. property sheet. d. Separator 22. c. What should you do before selecting the default layout ? a. b.Two windows. You have a folder with a set of icon files.add the path of your folder. . c. number. b. 26. One canvas with one content canvas c. Which combination should you consider to create this form. You are creating the sales report to be run in both bitmapped and character mode environments. char. icons from the folder to the oracle bin folder. get_application_property() c. How do you find the nls_language used in your Application a. d. SET_ALERT_PROPERTY Property Class Visual Attribute Not possible to change the alert style 24. How do you change the alert style at Runtime a. borders. drop_parameter_list(listname) 28. so that it will be easy to read and use a.d. Which button property does not allow the navigation to its own block a. Add the path In the forms Add the path Move all the in FORMS45_ICON parameter in oracle environment. destroy_parameter_list(listname) b. one for the content canvas and one for the stacked canvas 25. c. How do you make forms recognize the path of your folder to search for icon files. buttons or graphics. boolean 29. b. Form parameters are variables of type a. One window with one stacked canvas b. How do you delete a dynamically created parameter list a. b. char. d. Set Set Set Set Navigable to False Mouse Navigate to False Next Navigation to False Previous Navigation to False 23. MODE system parameter character mode settings. date b. a. c. get_nls_language() b.One window with one content canvas and one stacked canvas d. Modify Modify Define Remove the the the any report page size .

Add a summary column outside the groups. 31.rep . You are preparing to create an inventory report for your application.ename. a. select sal as the source column . d. Add a formula column outside the groups and create a PL/SQL function to compute the results b. Your goal is to reduce the amount of network traffic generated by the sales application in your client server environment . Using the data model editor. You are creating an application for the Spanish users. c. a. which design issue will you consider when creating the inventory report for the sales application ? a. Which of the following file types should you use when creating the report definition. How would you view jobs that are scheduled to run at a future time? a. b. Add a summary column to the master group. c. d. c. NLS_LANG USER_NLS_LANG NLS_TERRITORY DEVELOPER_NLS_LANG 33. You need to review the reports that are scheduled to run during this hour. d. cannot view a job until it has been executed.rdf . b. 2000'. b. c. . select the sal as the source column. d.rex .sal FROM emp WHERE hiredate < TO_DATE('January 1.30. d. Add a placeholder column outside the groups.deptno. Remove unused frames. select sal as the source column. the Scheduled jobs icon in the Queue Manager the R30CLI command line with the SCHEDULE parameter. Use transparent fill Minimize the number of queries Remove unnecessary format triggers 32. You create a single query group above salary report using the following query: SELECT empno. YYYY'). You need to modify the report to add a summary column for the salary values in each department. 34. b. The Application will be run on three different platforms. The oracle server will be shutdown today between 5PM and 6PM for hardware maintenance. but prefer to develop using English. Which NLS variable should you set when testing to ensure the runtime messages output in Spanish.rdx . use the sum function and reset the value by g_deptno. use the sum function and reset the value by g_deptno c. use the sum function and reset the value by g_deptno. Use Use Use You the current jobs icon in the Queue Manager. how could you accomplish this task? a.'Month dd.

WNDS. c. Copy the code into an Object Library. d. RNDS. 36. c. Which component of the SRW package will apply the format mask to the salary column.SET_ATTR SRW. RNDS. How do you add a value to a Check constraint of a column a. You created a procedure and stored it as a report level program unit within the sales report. c c b c . 2. WNPS RNPS RNPS WNPS 38. e. d.35. SRW. Viewgroup Viewid Viewport Varchar2 Canvas. Reference the code to the report level program unit. RNDS. add a value without dropping the existing constraint.ATTR. RNPS. Use the PL/SQL Editor to copy the code by cutting and pasting. 4. b. b. c. b. d. alter alter alter It is table t1 modify table t1 modify constraint con1 not possible to constraint con1 add value('M') . RNPS. GET_BLOCK_PROPERTY GET_FORM_PROPERTY GET_RELATION_PROPERTY GET_RELATION_BLOCK_PROPERTY GET_APPLICATION_PROPERTY 40. e. You create a function to change the color of a value in the Salary Column of the employee report if the value is greater than 2500 .MASK SRW. Answers SET 1 1. RNDS. a. b. c. How can you get a detail block name in a form which has a Master-Details blockusing relations a. c. A packaged function can assert maximum purity levels by specifying one of the following in PRAGMA_RESTRICT_REFERENCES a.STYLE SRW. d. add value('M') . b. d. Copy the code into a PL/SQL Library. 39. c. b. WNPS. con1 add value ('M') . What is the best way to reuse the procedure within the report? a.What is the datatype used in forms to declare a canvas variable a.GCOLOR 37. 3.ATTR. d.ATTR.

B 18. c 31. c 19. B 19. C 20. c 12. d 20. D 5. b 33. D 10. C 11. a 21. c 24. d 23. b 8. C 14. a 37. C 9. B 21. D 16. A 13. a 28. A 15. E 17. A 6. c 38. c 36. a 17. D 12. b 26. C 8.f SET II 1.5. b 15. c 34. b 10. d 11. c 22. a 6. a 40. b 30. d 25. a 18. c 13. d 39. d 35. c 27. a 7. a 32. D 22. A 2. B . a 9. d 14. B 3. b. B. b 16. a 29. B 4. F 7.

31. 34. 24. 25. 39. 36. 30. 40.23. B C C B A A C B C B B C C A B B C A . 32. 33. 27. 26. 28. 29. 35. 38. 37.