You are on page 1of 3

Test: Quiz: Using Oracle-Supplied Packages 1.

Using the FOPEN function, you can do which actions with the UTL_FILE pa ckage? (Choose 2) Mark for Review (1) Points (Choose all correct answers) It is used to append to a file until processing is complete. (*) It is used to read and write text files stored outside the database. (*) It is used to find out how much free space is left on an operating syste m disk. It is used to manipulate large object data type items in columns.

Correct 2. The UTL_FILE package can be used to read and write binary files such as JPEGs as well as text files. True or False? Mark for Review (1) Points True False (*)

Correct 3. The DBMS_OUTPUT gives programmers an easy-to-use interface to see for in stance the current value of a loop counter or if a program makes it to a particu lar branch of an IF statement. (True or False?) Mark for Review (1) Points True (*) False

Correct 4. Which DBMS_OUTPUT package subprogram places text into the buffer at Line 1? (Choose one) IF v_bool1 AND NOT v_bool2 AND v_number < 25 THEN --Line 1 ELSE ...

END IF; DBMS_OUTPUT.NEW_LINE; Mark for Review (1) Points DBMS_OUTPUT.PUT('IF branch was executed'); (*) DBMS_OUTPUT.PUT_LINE('IF branch was executed'); DBMS_OUTPUT.GET_LINE('IF branch was executed'); DBMS_OUTPUT.NEW_LINE('IF branch was executed');

Incorrect. Refer to Section 11 Lesson 2. 5. The UTL_FILE package contains several exceptions exclusively used in th is package. Which are they? (Choose 3) Mark for Review (1) Points (Choose all correct answers) INVALID_PATH (*) NO_DATA_FOUND WRITE_ERROR (*) INVALID_OPERATION (*) ZERO_DIVIDE

Incorrect. Refer to Section 11 Lesson 2. 6. The DBMS_OUTPUT package is useful for which of the following activities ? (Choose two) Mark for Review (1) Points (Choose all correct answers) Interact with a user during execution of a function or procedure. Display results to the developer during testing for debugging purposes. (*)

Trace the code execution path for a function or procedure. (*) Write operating system text files to the user's screen.

Incorrect. Refer to Section 11 Lesson 2. 7. Which general exceptions may be handled by the UTL_FILE package? (Choos e 2) Mark for Review (1) Points (Choose all correct answers) TOO_MANY_ROWS VALUE_ERROR (*) ZERO_DIVIDE NO_DATA_FOUND (*)

Incorrect. Refer to Section 11 Lesson 2.

You might also like