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. Conversion: Implicit conversion can be (faster / slower) than explicit conversion.
associative
implicit CASE_NOT_FOUND exception
slower
current
2. Triggers and views always have _________ rights.
3. I/O: This package does email.
UTL_SMTP
RAISE
VARCHAR2
CREATE TYPE
4. Exceptions: Declare an exception called E.
static
E Exception;
network
HTF
5. Fundamental: One of the 4 types of lexical units: i_____
associative arrays
context
identifiers
current
6. Name the two types of FOR loop.
ex := tbl1 MULTISET EXCEPT tbl2
CLOSE
numeric and cursor
EXIT WHEN cv%NOTFOUND
7. Types of blocks: A pl/sql block that is not stored in the database.
anonymous
elsif
=
flushed
8. The statement that is used to execute most (native) dynamic SQL.
REF CURSOR
INTO
EXIT WHEN
execute immediate
9. Cursors: Give the statement to close cursor C.
close C
network
base
FOR i IN REVERSE 1..10 LOOP
10. IDs: You can use a reserved word as a _______ user-defined identifier.
quoted
NEW
timing
anonymous
11. Triggers: On a non-editioning view - you can only define __________ triggers.
strong
Keywords and predefined names.
STANDARD
INSTEAD OF
12. Define a record variable r - of type tRec - initialized with values 9 and 'Jones' in its two fields.
13. Exceptions: An exception raised inside an _______ _______ propagates immediately to the enclosing block
concatenation
native dynamic
exception handler
explicit
14. Wrap ______=xxxx oname=zzzzz
1
iname
statically
True
15. The attribute used to get the type of a row without knowing what it is.
before insert or update on emps
NEW
%ROWTYPE
source
16. Labels for blocks and statements are enclosed in '__' brackets.
names
VARCHAR2
<<>>
VARRAY - Nested table
17. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.
VARRAY - Nested table
bind arguments
unqualified
cursor
18. A subprogram defined within another subprogram is a _______ subprogram.
SQLERRM
library
code
nested
19. Types: A data type family consists of a ______ type and its subtypes.
PRAGMA EXCEPTION_INIT (E - -1);
base
lowest
CHAR - VARCHAR2
20. Exceptions: The three words that can be used to guarantee all exceptions will be handled.
stored
drop procedure
execute immediate
WHEN OTHERS THEN
21. Triggers: A compound trigger can fire at more than one ______ point.
base
colon
anonymous block
timing
22. Associative array types (can / cannot) be defined in the database.
cannot
definer's
value
constructor
23. Cursors: What is the 'name' of the implicit cursor?
SQL
r t.%ROWTYPE;
currval and nextval
GET_LINE
24. Advantage: Performance: Storing and runnng procedures on the server minimizes ______ traffic.
DML
a cursor
network
PSP
25. What are the starting and ending keywords of a simple loop?
$IF $THEN $ELSE $END
DBMS_SESSION.RESET_PACKAGE
LOOP - END LOOP
512
26. A CASE statement (can / cannot) execute more than one group of statements.
cannot
variable
LOOP
255
27. An incomplete type is a type created by a ______ type definition.
NDS
forward
TOO_MANY_ROWS
alter procedure
28. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.
30
constructor
SYS_CONTEXT
%FOUND - %ISOPEN - %NOTFOUND - %ROWCOUNT
29. DynSQL: In EXECUTE IMMEDIATE - the statement string can use either placeholders - or string ________.
concatenation
exit when cgo%NOTFOUND
BINARY_INTEGER
WHEN
30. Exceptions: Write the call (2 args) to associate message 'Bad' with error code -20 -100.
31. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.
1
SYS_CONTEXT
native dynamic
OTHERS
32. Mode designation for an input parameter.
=
IN
Apache
cursor number
33. Triggers: In a per-row trigger - the ____ record shows you the original state of an affected row.
savepoint ab
PLS_INTEGER
executable
OLD
34. Pkgs: RESET_PACKAGE only takes effect after the outermost PL/SQL proc that called it ________.
UTL_HTTP
finishes
%ISOPEN.
flushed
35. The names of Java objects in Oracle can be up to __ characters in length.
%ISOPEN.
1
reference
4K
36. In a FORALL loop - you (can / cannot) use the index variable for purposes other than indexing into the collection.
cannot
execute immediate
executable
null string
37. Cursors: The value of SQL%ROWCOUNT after a SELECT INTO statement returns more than one row.
name
can
PRAGMA AUTONOMOUS_TRANSACTION;
1
38. The inquiry directive that gives the current line number in the procedure.
$$PLSQL_LINE
...
30
PL/SQL
39. Give the statement to make a program autonomous.
PRAGMA AUTONOMOUS_TRANSACTION;
after insert on emps
explicit
SQL
40. A type of compiler directive - begins with 'i'.
calls
PLSQL_CCFLAGS
inquiry
FORALL and BULK COLLECT
41. A SELECT statement with the FOR UPDATE clause puts a ______ on the selected rows.
lock
-20 -000
r t.%ROWTYPE;
FETCH - BULK COLLECT INTO
42. Exceptions: Some internal exceptions have ________ names.
EXIT
Ordinary - Quoted.
scalable
predefined
43. The 2 characters that begin all inquiry directives.
TYPE tV IS VARRAY(100) OF NUMBER
variable
$$
RAISE
44. An autonomous program runs in its own __________.
transaction
anonymous
**
cursor c RETURN rC;
45. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.
view
is not
open C
EXECUTE IMMEDIATE
46. Loops: What is the index range operator in a FOR loop?
is certain
view
..
ROLLBACK
47. Official acronym for PL/SQL's runtime engine.
PVM
3
$$
lower sub-block
48. The meaning of 'FGA'.
index
fine-grained auditing
CHAR - VARCHAR2
v3 IN OUT NUMBER
49. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.
EXIT WHEN
definition
1
error code
50. Cursors: What are the 3 possible values of SQL%FOUND and SQL%NOTFOUND?
TRUE - FALSE - NULL
DBMS_PIPE
$END
unhandled