Oracle PL/SQL Programming
Test your knowledge of Oracle SQL functions, PL/SQL cursors, loops, and exception handling
Questions
Which ITERATIVE control construct in PL/SQL is also called as INFINITE LOOP?
- Cursor For Loop
- Numeric For Loop
- While Loop
- Simple Loop
Implicit cursors, process ... Choose all that apply
- All INSERT statements
- All DELETE statements
- All UPDATE statements
- Single row SELECT statements
- Multiple row SELECT statements
- Zero row SELECT statements
Explicit cursors are used to process multiple row SELECT statements
- True
- False
Index of numeric for loop always increments by one
- True
- False
When dealing with Cursor For Loops, which steps are taken care of implicitly? Choose all that apply
- DECLARE
- OPEN
- FETCH
- CLOSE
- PROCESS
Identify the CURSOR attribute that returns the number of rows fetched so far by the cursor?
- %FOUND
- %NOTFOUND
- %ROWCOUNT
- %ISOPEN
Identify the CURSOR attribute that evaluates to TRUE if cursor returns at least 1 row?
- %FOUND
- %NOTFOUND
- %ROWCOUNT
- %ISOPEN
Identify the CURSOR attribute that evaluates to FALSE if cursor returns at least 1 row?
- %FOUND
- %NOTFOUND
- %ROWCOUNT
- %ISOPEN
Identify the CURSOR attribute that evaluates to TRUE if cursor is OPEN?
- %FOUND
- %NOTFOUND
- %ROWCOUNT
- %ISOPEN
which of the following is the default format for date display
- DD-MM-YYYY
- DD-Mon-RR
- DD-Mon-YY
- DD-MON-RR
what will be the output of: select rpad('*$*',3,'*') from dual;
- *$****
- *$*
- ****$*
- ***
what is the output: select substr('Oracle Basics',-5,3) from dual
- 'asi'
- 'isa'
- 'le '
- 'acl'
what is the output: select mod(1600,300) from dual;
- 300
- 100
- 500
- 000
Which of the following is not a grouping function?
- avg
- count
- abs
- min
Which of the folowing is not a oracle function?
- round
- trunc
- maximum
- initcap
Which method returns the number of rows in a set.
- sum
- num_rows
- count
- total
Which operator is equivalent to concat function?
- &
- |
- ||
- &&
OTHERS is super set of all predefined internal exceptions
- True
- False