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. The source for wrapping begins with the word ______.
USER_PROCEDURES
never
create
reference
2. TCL: Create a savepoint called ab
savepoint ab
collections
EXECUTE IMMEDIATE
compile
3. Cursors: The FOR UPDATE phrase goes at the (beginning/end) of the cursor definition.
end
cursor c;
open cv for
# - $ - _
4. The PL/SQL virtual machine turns bytecode into system ______.
is
30
invoker's
calls
5. Advantage: PL/SQL gives SCALABILITY because stored procedures are executed on the _______.
'
server
do not
create procedure
6. Exceptions: An exception in the declarations section propagates to the enclosing _______.
external subprogram
block
ALTER SESSION
EXECUTE
7. Delimiters: Single-line comment marker.
INSTEAD OF
loop
-
memory
8. I/O: This package sends text output to SQLPlus
DBMS_OUTPUT
<> - != - ^=
timing
name
9. One good use of bind variables is to guard against SQL _______.
concatenation
network
injection
does not
10. The two main parts of a package are the ____ and the _____.
constant
literal
specification - body
does not
11. Exceptions: An unhandled exception ________ to the enclosing block.
parameter
-
WHEN OTHERS THEN
propagates
12. The attribute used to get the type of a row without knowing what it is.
FOR - IN
implicit
%ROWTYPE
definition
13. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.
RELIES_ON
%FOUND - %ISOPEN - %NOTFOUND - %ROWCOUNT
decimal
vname CONSTANT VARCHAR2 := 'x';
14. Exceptions: The _________ package defines the PL/SQL environment.
query
a number := 10
OTHERS
STANDARD
15. Types: One of the 4 PL/SQL things that have a data type (begins with 'r').
return value
..
USER_PROCEDURES
exception handler
16. Triggers: The code in a trigger is actually an ________ block.
elements
.
invoker's
anonymous
17. Advantage: Having procedures stored and executed on the server makes PL/SQL ________.
invoker's
finishes
scalable
True - false or NULL.
18. Dbms_sql: A cursor opened with OPEN_CURSOR (can/cannot) be reused for multiple queries without first closing it.
can
RESULT_CACHE
1
STANDARD
19. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.
cannot
$IF
network
nested tables - associative arrays
20. A CASE expression ends with _____.
END
anonymous
strong
CURSOR - RETURN
21. Triggers: In a DML trigger - the phrase that makes the trigger run for every affected record.
procedure P AUTHID definer;
create procedure
strong
for each row
22. I/O: This DBMS_OUTPUT proc retrieves one line from the buffer.
GET_LINE
Gateway
wrap
scalar
23. From a block nested inside a procedure P - reference variable V of the outer procedure.
selection
p.v
explicit cursor
$IF
24. IDs: Predefined identifiers are declared in this package.
in the database
name and datatype
LOOP - END LOOP
STANDARD
25. The best candidates for result-caching are functions that are invoked frequently but depend on __________________ or never.
SESSION_USER
REUSE SETTINGS
procedure P AUTHID current_user;
information that changes infrequently
26. What are the starting and ending keywords of a simple loop?
LOOP - END LOOP
RECORD OF ARRAYS
network
$$PLSQL_LINE
27. In a collection - the internal components always have the _____ data type.
do not
..
CURRENT_USER
same
28. An autonomous program runs in its own __________.
integer
transaction
NEW
compilation
29. Delimiters: the attribute indicator.
current transaction
$IF $THEN $ELSE $END
%
after
30. I/O: The string table type in DBMS_OUTPUT for holding lines of text.
CHARARR
elsif
an AUTHID property
composite
31. Exceptions: The ________ function returns the current error code.
%ISOPEN.
anonymous
..
SQLCODE
32. Type: A __________ subtype has only a subset of the values of its base type.
constrained
expression
system global area
disable
33. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.
cannot
1
WHERE CURRENT OF
suspended
34. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.
drop procedure
function f (n number) return number result_cache relies_on (emps);
index
DBMS_SESSION.RESET_PACKAGE
35. Declare a package procedure P with no arguments - and give it invoker's rights.
do not
Declaration
predefined
procedure P AUTHID current_user;
36. Kind of code created by the PL/SQL compiler.
Web Toolkit
PRAGMA EXCEPTION_INIT (E - -1);
label
bytecode
37. With a result-cached function - it uses a cached value when the function is called again with the...
same arguments
PLSQL_CCFLAGS
DATE
NDS
38. Exceptions: Each internal exception has an Oracle ______ _______.
predefined
pseudocolumn
explicit cursor
error code
39. Define a collection type - tV - which is a varray of 100 NUMBERs.
fail
EXECUTE
TYPE tV IS VARRAY(100) OF NUMBER
PLS_INTEGER
40. A collection is an ordered group of ________ - all of the same ____
cursor c RETURN rC;
can
elements - type
cannot
41. You can use the BULK COLLECT INTO clause in a SELECT or a ______.
FETCH
procedure P AUTHID definer;
cannot
WHERE CURRENT OF
42. A unit with AUTHID = CURRENT_USER is an ________ rights unit.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. To run a PIPE ROW statement in your autonomous routine - you must close any _____________.
FETCH - INTO
RETURN
TIMESTAMP.
autonomous transaction
44. Cursors: Give the statement to fetch data from cursor variable CV into MyVar.
simple
CURRENT_USER - DEFINER
follows
fetch cv into myvar
45. The allowed data types of user-defined conditional compilation directives are boolean and _______.
-20 -000
pls_integer
1
CHARARR
46. Declare a variable r whose type is that of the records in table t.
EXCEPTION_INIT
r t.%ROWTYPE;
implicit
nested
47. The DECLARE keyword is only required in an _______ _______.
PVM
Apache
anonymous block
'ENABLE:SEVERE' - 'ERROR:06002'
48. Types: One of the scalar data types specific to PL/SQL: b_____.
associative
BOOLEAN
FOR UPDATE
parameter
49. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.
an autonomous routine
is
closed
4
50. When a parameter is passed by reference - changes made to it inside the procedure cannot be undone. True/False.
True
USER_PROCEDURES
OTHERS
colon