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. IDs: The two types of words that can - but should not - be used as user-defined identifiers.
TRUE - FALSE and NULL
mandatory
order
Keywords and predefined names.
2. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.
SESSION_USER
WHERE CURRENT OF
once
cannot
3. The $ERROR directive is used to make compilation ____.
fail
will not
boolean
predefined
4. What word is in a function header but not in a procedure header?
SQL
optional
1
RETURN
5. SIMPLE_INTEGER is like PLS_INTEGER - but it does not allow ____ values - and it does not raise overflow exceptions.
composite
FOR i IN REVERSE 1..10 - LOOP - NULL; END LOOP;
512
6. 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
7. A subprogram created inside a block is a _________ subprogram.
nested
wrap
statement
rollback to ab
8. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.
$IF
execute immediate
cursor
cursor c RETURN rC;
9. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?
WHERE CURRENT OF
after insert on emps
%BULK_ROWCOUNT
10. A GOTO statement cannot branch from an exception handler back into the...
EXCEPTION_INIT
portable
current BEGIN-END block
same
11. The inquiry directive that gives the current line number in the procedure.
=
$$PLSQL_LINE
dynamic
PUT
12. Where an external subprogram is stored.
<> - != - ^=
in the database
is
significant
13. The $IF must evaluate a ______ _______ expression.
EDITION_NAME
exception handler
cursor
static boolean
14. The meaning of 'FGA'.
OLD
END CASE
fine-grained auditing
concatenation
15. Advantage: PL/SQL supports ______-oriented programming.
exception handler
library
object
ADT
16. To run a PIPE ROW statement in your autonomous routine - you must close any _____________.
identifiers
autonomous transaction
FORALL i IN MyList.FIRST..MyList.LAST
v3 IN OUT NUMBER
17. IDs: You cannot use reserved words as ______ user-defined identifiers.
placeholders
ordinary
reference
ALTER SESSION
18. Which collection type is bounded?
WHEN OTHERS THEN
varray
procedure - function
FOR i IN REVERSE 1..10 LOOP
19. Fundamental: Which one of these is a simple symbol: a - = - !=
UTL_SMTP
=
selection
buffer
20. Cursors: A cursor with a name is an _________ cursor.
explicit
SQLERRM
USING
return value
21. Triggers: INSTEAD OF triggers only run on ______ views.
memory
USING
non-editioning views
database
22. Cursors: The four cursor attributes - in alphabetical order.
dense
TYPE tN IS TABLE of NUMBER
%FOUND - %ISOPEN - %NOTFOUND - %ROWCOUNT
buffer
23. A ___________ behaves like a table column - but it is not stored in the table.
non-editioning views
production
pseudocolumn
24. Fundamental: One of the 4 types of lexical units: L_____
is
create procedure
literals
open C
25. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.
DML
cursor
selection
does not
26. PLS_INTEGER has its arithmetic implemented in ________ - so it is very fast.
FETCH
hardware
forward
EVERE - PERFORMANCE - INFORMATIONAL
27. Dbms_sql: A cursor opened with OPEN_CURSOR (can/cannot) be reused for multiple queries without first closing it.
view
scalar
boolean
can
28. What clause makes a compilation default to the PLSQL_CCFLAGS settings from the last compilation?
REUSE SETTINGS
$IF
r tRec := tRec(9 - 'Jones');
%TYPE
29. To enable result-caching for a function - use the _____________ clause.
procedure P AUTHID definer;
raise_application_error
%TYPE
RESULT_CACHE
30. _____ arrays cannot be used as the type of an Oracle table column.
Oracle
=
associative
USER_PLSQL_OBJECT_SETTINGS
31. I/O: This package handles HTTP.
:=
UTL_HTTP
.
CURSOR - RETURN - IS
32. Subprograms are stored in __________ form.
mandatory
non-editioning views
is
executable
33. The declaration section is (optional/mandatory).
USING
variable
CHAR - VARCHAR2
optional
34. Types of blocks: A pl/sql block that is not stored in the database.
True - false or NULL.
information that changes infrequently
anonymous
implicit
35. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE
WHERE CURRENT OF
STANDARD
CHAR - VARCHAR2
collections
36. 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.
for each row
ROLLBACK
'
NESTED TABLE myColl STORE AS myCollTab
37. Triggers: The clause to make a trigger run once for every affected row.
DEFINER
for each row
parameter
..
38. The EXTEND method is not used with ______ _______.
anonymous block
associative arrays
..
once
39. This is a CASE (expression / statement): myvar := CASE num WHEN 1 THEN 'good' WHEN 2 THEN 'bad' END;
expression
UTL_SMTP
reference
5
40. A unit with AUTHID = DEFINER is a ________ rights unit.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. With Edition-based Redefinition enabled - the unique specification of an object requires OWNER - OBJECT_NAME and ___________.
can
REF CURSOR
EDITION_NAME
transaction
42. Characters that end a multi-line comment.
*/
cursor
invalid
is
43. Associative arrays (do / do not) have to be initialized with a constructor.
information that changes infrequently
FETCH - BULK COLLECT INTO
do not
IS
44. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.
v1 OUT number default 10
decimal
30
r tRec := tRec(9 - 'Jones');
45. Cursors: Give the statement to close cursor C.
4
FETCH
REF CURSOR
close C
46. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.
upper - coalesce
*/
EDITION_NAME
$IF
47. Types: One of the scalar data types specific to PL/SQL: P________
Abstract
PLS_INTEGER
TYPE tN IS TABLE of NUMBER
obfuscates
48. Kind of comment not to put in a PL/SQL block to be processed dynamically by an Oracle Precompiler program.
r t.%ROWTYPE;
procedure P AUTHID definer;
inquiry
single-line
49. For a collection - the NEXT method gets the next higher (element / index).
do not
CLOSE
RAISE
index
50. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.
hardware
%
255
r t.%ROWTYPE;