SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Oracle PL - SQL
Start Test
Study First
Subjects
:
oracle
,
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Declare an unconstrained subtype of NUMBER called NUMB.
SUBTYPE numb IS number;
UTL_FILE
package
OPEN_CURSOR
2. The Wrap utility (does / does not) encrypt source code.
512
label
include
does not
3. Delimiters: the attribute indicator.
bind
%
network
collections
4. Triggers: You (can/cannot) explicitly invoke a trigger.
elements
cannot
PRAGMA AUTONOMOUS_TRANSACTION;
colon
5. How many times are a FOR loop's index bounds evaluated?
commit - rollback
cannot
once
cannot
6. Triggers: The clause to make a trigger run once for every affected row.
for each row
v3 IN OUT NUMBER
timing
STANDARD
7. Package for getting the postprocessed source of a program.
DBMS_PREPROCESSOR
CREATE TRIGGER
fail
API
8. Command to delete a procedure.
SQLERRM
SYS_CONTEXT
drop procedure
WHEN OTHERS THEN
9. Exceptions: If there is no handler for an exception - PL/SQL returns an ________ exception error to the invoker or host environment.
%
delimiters
exception handler
unhandled
10. Declare an associative array type - t - whose elements are of type rPerson - and whose index is PLS_INTEGER.
LOOP
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
composite
cursor c;
11. Command to make a no-op (omit semicolon).
RELIES_ON
IN - OUT - IN OUT
database
12. To use a TYPE declared in the database - a PL/SQL block has to have _______ privilege on the type.
select
<<>>
a cursor
CLOSE
13. Types: One of the 4 PL/SQL things that have a data type (begins with 'v').
DATE '2005-12-25'
alter procedure
%BULK_ROWCOUNT
variable
14. Conditional compilation is useful for compiling a program under different ______ of Oracle.
Reserved words.
versions
PL/SQL Gateway
colon
15. The compiler directive used to select which code to compile.
WHEN OTHERS THEN
$IF
cannot
anonymous
16. Cursors: The FOR UPDATE phrase goes at the (beginning/end) of the cursor definition.
end
never
CURRENT_USER - DEFINER
Ordinary - Quoted.
17. The RESULT_CACHE clause comes (before / after) the RETURN clause.
r tRec := tRec(9 - 'Jones');
integer
same arguments
after
18. I/O: dbms_output.put_line puts output into a _______.
non-editioning views
DBMS_DDL
selection
buffer
19. When an autonomous routine begins execution - the main transaction is ________.
invoker's
3
ADT
suspended
20. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.
source code
SESSION_USER
exception
error code
21. Dbms_sql: This DBMS_SQL function opens a new cursor.
=
OPEN_CURSOR
implicit
virtual machine
22. Wrap ______=xxxx oname=zzzzz
iname
USING
slower
reference
23. After the RESULT_CACHE clause - you can put a _________ clause to enable dependency-checking.
colon
COMMIT - ROLLBACK - SAVEPOINT - SET TRANSACTION
include
RELIES_ON
24. Cursors: Give the statement to open cursor C that takes parameter p.
cursor
delimiters
PSP
open C(p)
25. Kind of datatypes that support object-oriented programming in PL/SQL.
FOR i IN REVERSE 1..10 LOOP
Abstract
composite
compile
26. Fundamental: What is the exponentiation operator?
**
procedure P AUTHID definer;
associative arrays
cursor
27. Cursors: Opening keyword of a cursor FETCH loop.
type T is ref cursor
Ordinary - Quoted.
can
LOOP
28. How to reference a variable V declared in a block labelled L: ____.
3
...
L.V
mandatory
29. Two types of stored subprograms.
rollback to ab
procedure - function
explicit cursor
RETURN
30. Which collection type is bounded?
integrated
compilation
varray
obfuscates
31. Assignment of PLSQL_CCFLAGS (cannot / can) be included in ALTER PROCEDURE ... COMPILE ...
can
cursor
an autonomous routine
Ada
32. Cursors: What is the 'name' of the implicit cursor?
anonymous block
bind
SQL
can
33. Web: PL/SQL _______ enables a Web browser to invoke a PL/SQL stored subprogram through an HTTP listener.
Gateway
ex := tbl1 MULTISET EXCEPT tbl2
obfuscates
array
34. Triggers and views always have _________ rights.
35. Exceptions: Write the call (2 args) to associate message 'Bad' with error code -20 -100.
36. Cursors: What implicit cursor attribute gives row counts for a FORALL statement?
FGA
cursor c RETURN rC;
%BULK_ROWCOUNT
37. IDs: You cannot use reserved words as ______ user-defined identifiers.
include
ENABLE
procedure - function
ordinary
38. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.
hardware
definition
native dynamic
ALTER SESSION
39. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.
information that changes infrequently
cursor
$IF $THEN $ELSE $END
$IF
40. I/O: This package sends text output to SQLPlus
expression
DBMS_OUTPUT
disable
SUBTYPE numb IS number;
41. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';
FETCH
ALTER SESSION
optional
UTL_HTTP
42. Exceptions: Type ______ to re-raise the current exception.
EDITION_NAME
deletions
optional
RAISE
43. You (can/cannot) put a label before an END LOOP statement.
null string
RECORDS
sql
cannot
44. A collection is an ordered group of ________ - all of the same ____
network
PLSQL_OPTIMIZE_LEVEL
elements - type
COUNT
45. Exceptions: An exception in the declarations section propagates to the enclosing _______.
invoker's
block
flushed
sequence pseudo-columns
46. What clause makes a compilation default to the PLSQL_CCFLAGS settings from the last compilation?
REUSE SETTINGS
FOR UPDATE
cannot
CHAR - VARCHAR2
47. The DEFINITION of a cursor is the _____ that returns the records.
COUNT
WHERE CURRENT OF
FOR UPDATE
query
48. I/O: This DBMS_OUTPUT proc retrieves multiple lines from the buffer.
TRUE - FALSE and NULL
EXECUTE IMMEDIATE
GET_LINES
SESSION_USER
49. A basic PL/SQL datatype that SQL does not have.
SQL
boolean
collections - records
anonymous
50. Cursors: A pointer to a cursor is called a ______ _______.
cursor variable
FOR i IN REVERSE 1..10 LOOP
static boolean
Web Toolkit