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. In the IF syntax - is if ENDIF or END IF?
IF - CASE or LOOP
END IF
CURRENT OF
anonymous block
2. Fundamental: A label can only go directly before an _______ statement.
associative
constructor
executable
True - false or NULL.
3. Cursors: A session cursor that a PL/SQL user creates and manages.
explicit cursor
literals
-
binding
4. IDs: What a quoted user-defined identifier is enclosed in.
binding
STANDARD
Double quotes.
propagates
5. Types: One of the scalar data types specific to PL/SQL: R_________.
definer's
production
REF_CURSOR
name
6. Declare a cursor c with no parameters or return type.
boolean
cursor c;
aggregate - analytical
expression
7. Types: One of the 4 PL/SQL things that have a data type (begins with 'v').
composite
cannot
STANDARD
variable
8. Triggers: Unlike a stored procedure - you can enable and _____ a trigger.
USER_PROCEDURES
external subprogram
cannot
disable
9. Cursors: The index variable in a cursor FOR loop (does/does not) need to be declared.
does not
view
cannot
@
10. Kind of comment not to put in a PL/SQL block to be processed dynamically by an Oracle Precompiler program.
can
IN - OUT - IN OUT
single-line
Wrap
11. Advantage: PL/SQL gives SCALABILITY because stored procedures are executed on the _______.
searched
comments
variable
server
12. Abbreviation of invoker's rights
IR
name-value
object
**
13. Exceptions: PL/SQL exceptions are of two types: internal and _________.
variable
user-defined
error
create
14. Types: The only PL/SQL type for which you can specify a range constraint.
PLS_INTEGER
END
predefined
composite
15. Declare an output NUMBER parameter - v1 - that defaults to 10.
implicit
SQL
specification - body
v1 OUT number default 10
16. Fundamental: Character used to escape a single quote inside a literal.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. A subprogram defined within another subprogram is a _______ subprogram.
.
dynamic
source code
nested
18. How many times are a FOR loop's index bounds evaluated?
elements
once
memory
SQL
19. After the RESULT_CACHE clause - you can put a _________ clause to enable dependency-checking.
Server Pages
RELIES_ON
DR
FORALL i IN MyList.FIRST..MyList.LAST
20. An incomplete type only has a ____.
OUT
explicit cursor
TYPE tA IS TABLE OF NUMBER INDEX BY VARCHAR2(20)
name
21. Cursors: The two keywords in a mere cursor declaration (one is optional).
CURSOR - RETURN
@
open C
implicit CASE_NOT_FOUND exception
22. Setting CURRENT_SCHEMA only changes what is prepended to __________ references.
is
block
SESSION_USER
unqualified
23. The names of Java objects in Oracle can be up to __ characters in length.
cannot
lowest
4K
cannot
24. Fundamental: One of the 4 types of lexical units: L_____
TYPE tV IS VARRAY(100) OF NUMBER
cannot
literals
cursor
25. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.
user-defined
anonymous
SESSION_USER
production
26. Statement to exit a cursor loop on cursor cGo when there are no more records.
exit when cgo%NOTFOUND
database
RECORD OF ARRAYS
query
27. Exceptions: Write the call (2 args) to associate message 'Bad' with error code -20 -100.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. Kind of code created by the PL/SQL compiler.
bind
SQL
bytecode
;
29. The first SQL statement in an autonomous routine begins a _______.
transaction
ADT
aliases
TIMESTAMP.
30. Characters that begin a multi-line comment.
virtual machine
/*
collections - records
FGA
31. Wrap ______=xxxx oname=zzzzz
boolean
iname
FGA
set serveroutput on
32. Types of blocks: Procedures and functions are _______ blocks.
error
names
stored
invoker's
33. Command to create a procedure.
cursor
bytecode
non-editioning views
create procedure
34. Collections are one of the two kinds of PL/SQL _______ data types.
composite
5
'ENABLE:SEVERE' - 'ERROR:06002'
do not
35. I/O: The output from DBMS_OUTPUT will display (during/after) program execution.
for update of
production
after
TYPE rec IS RECORD (num NUMBER - name VARCHAR2(10));
36. The SET TRANSACTION statement affects only the ____________.
:=
DML
current transaction
lowest
37. Conversion: Implicit conversion can be (faster / slower) than explicit conversion.
implicit cursor
statically
slower
lowest
38. What is the exception that is implicitly raised in a CASE statement with no ELSE clause?
CASE_NOT_FOUND
raise_application_error
IF - CASE or LOOP
slower
39. Triggers: The clause to make a trigger run after inserting into table EMPS.
%BULK_ROWCOUNT
after insert on emps
compile
delimiters
40. In 11g you can directly reference _____________ in PL/SQL.
sequence pseudo-columns
USER_PLSQL_OBJECT_SETTINGS
1 million
composite
41. To run TCL or DDL statements - a trigger (must / must not) be autonomous .
$IF $THEN $ELSE $END
must
do not
ROLLBACK
42. Cursors: A cursor FOR loop cannot use a _______ variable.
inquiry
cursor
single-line
anonymous block
43. User-defined compiler directives are defined in this system compile parameter.
3
IN - OUT - IN OUT
PLSQL_CCFLAGS
autonomous transaction
44. Command to assign to variables from a cursor.
=>
create procedure
DBMS_DDL
FETCH
45. Types: The predefined subtype of PLS_INTEGER that has the NOT NULL constraint.
reference
SUBTYPE n IS number not null;
UTL_SMTP
SIMPLE_INTEGER
46. Web: mod_plsql is an implementation of the PL/SQL _________.
suspended
PUT_LINE
Gateway
iname
47. I/O: This DBMS_OUTPUT proc retrieves one line from the buffer.
GET_LINE
open C(p)
LOOP
autonomous triggers
48. Give the clause you add to a CREATE TABLE statement - when there is a collection column myColl - that you want to be stored in a table called myCollTab.
open C(p)
1
definer's
NESTED TABLE myColl STORE AS myCollTab
49. True encryption is done with package __________.
-
will not
DBMS_CRYPTO
1
50. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.
invoker's
'ENABLE:SEVERE' - 'ERROR:06002'
SYS_CONTEXT
column