Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

PL/SQL Pre Test

1. Which of the following is used to declare a record?


a. %ROWTYPE
b. %TYPE
c. Both A & B
d. None of the above

2. In which mode parameter lets you pass values to the subprogram being called? It
cannot be assigned a value.
a. Using the IN mode
b. Using the OUT mode
c. Both A & B
d. None of the above

3. Which of the following executes the query and identifies the result set, consisting
of all rows that meet the query search criteria.
a. Fetching with a Cursor
b. Opening a cursor
c. Fetching bulk data with a cursor
d. None of the above

4.  Which statement associates a cursor variable with a multi-row query, executes


the query, and identifies the result set?
a. OPEN-FOR
b. FETCH
c. CLOSE
d. All mentioned above

5. Which datatype is used to store large blocks of character data in the database,
in-line or out-of-line? Both fixed-width and variable-width character sets are
supported.
a. BLOB
b. CLOB
c. BFILE
d. NCLOB

6. Which Package lets you use database triggers to alert an application when
specific database values change?
a. DBMS_OUTPUT
b. DBMS_ALERT
c. DBMS_PIPE
d. All mentioned above

7. Which Operator Returns TRUE if a subquery returns at least one row?


a. EXISTS
b. IN
c. IS NULL
d. LIKE

8. Which statement chooses from a sequence of conditions, and executes a


corresponding statement?
a. CASE Statement
b. CLOSE Statement
c. COMMIT Statement
d. None of the above

9. Which of the following is handled with the help of exception-handling section in


an PL/SQL block. For e.g SELECT INTO statement, which does not return any
rows.
a. A runtime error
b. A syntax error
c. Both A & B
d. None of the above

10. Subprograms let you extend the PL/SQL language. Which subprogram acts like
new expressions and operators?
a. Procedures
b. Functions
c. Both A & B
d. None of the above

You might also like