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. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.
FETCH - INTO
32 -000
upper - coalesce
cursor variable
2. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.
statement
dense
unqualified
RETURN
3. By default - OUT and IN OUT parameters are passed by _____.
buffer
versions
value
nested
4. IDs: The type of words that cannot be user-defined identifiers.
Reserved words.
index
Abstract
EXIT WHEN cv%NOTFOUND
5. Mode designation for an input parameter.
exception handler
DBMS_SESSION.RESET_PACKAGE
...
IN
6. The NOCOPY option on an OUT or IN OUT parameter - causes it to be passed by ______.
selection
reference
static
3
7. DynSQL: The colon-prefixed names used in EXECUTE IMMEDIATE are called ________.
placeholders
Server Pages
USING
autonomous transaction
8. DynSQL: Maximum string length to pass to EXECUTE IMMEDIATE.
NUMBER
32 -000
DATE '2005-12-25'
upper - coalesce
9. Types: The only PL/SQL type for which you can specify a range constraint.
before insert or update on emps
PLS_INTEGER
order
WHEN OTHERS THEN
10. From a block nested inside a procedure P - reference variable V of the outer procedure.
elements
p.v
PUT
pseudocolumn
11. Cursors: Opening keyword of a cursor FETCH loop.
LOOP
DBMS_PIPE
EXIT WHEN
1
12. Triggers: The clause to make a trigger run after inserting into table EMPS.
1
DBMS_SESSION
after insert on emps
SQL cursor
13. _______ arrays can be sparse or dense - depending on how you fill them.
FETCH
Reserved words.
associative
integer
14. Wrapped code (is / is not) not backward compatible.
do not
is not
PLS_INTEGER
block
15. The attribute used to get the type of a row without knowing what it is.
SQLERRM
expression
IS
%ROWTYPE
16. A GOTO statement can branch from an exception handler into...
an enclosing block
OTHERS
finishes
implicit CASE_NOT_FOUND exception
17. Advantage: PL/SQL programs are stored centrally - making them more ______.
vname CONSTANT VARCHAR2 := 'x';
manageable
in the database
dynamic
18. Native compilation turns bytecode into ________ code.
v2 IN NUMBER default 20
information that changes infrequently
savepoint ab
machine
19. In a cursor loop - the clause added to an INSERT or UPDATE to point at the current record.
WHERE CURRENT OF
finishes
scalar
L.V
20. An $ERROR directive ends with _____.
$END
HTP
NUMBER
1
21. Cursors: A cursor with a name is an _________ cursor.
native dynamic
explicit
name-value
transaction
22. Assigning values to PL/SQL variables that appear in SQL statements is called _______.
FETCH - INTO
binding
raise_application_error
cursor
23. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.
DML
Keywords and predefined names.
quoted
VARRAYs
24. The PL/SQL preprocessor passes ______ code to the compiler.
source
REUSE SETTINGS
<> - != - ^=
'ENABLE:SEVERE' - 'ERROR:06002'
25. The Wrap utility (does / does not) encrypt source code.
injection
reference
does not
API
26. With Edition-based Redefinition enabled - the unique specification of an object requires OWNER - OBJECT_NAME and ___________.
identifiers
bind
USER_PLSQL_OBJECT_SETTINGS
EDITION_NAME
27. Cursors: A session cursor that a PL/SQL user creates and manages.
unconstrained
definer's
explicit cursor
compile
28. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.
DBMS_OUTPUT
decimal
same
single-line
29. Where an external subprogram is stored.
static boolean
in the database
CHARARR
concatenation
30. An incomplete type is a type created by a ______ type definition.
VARCHAR2
forward
end
aggregate - analytical
31. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.
IN OUT
fetch cv into myvar
invoker's
closed
32. Value of PLSQL_OPTIMIZE_LEVEL that prevents optimization.
cursor
cursor number
1
3
33. Exceptions: PL/SQL exceptions are of two types: internal and _________.
FETCH - INTO
for update of
RECORD OF ARRAYS
user-defined
34. Term for a character literal with zero characters.
null string
Server Pages
information that changes infrequently
%BULK_ROWCOUNT
35. Loops: What is the index range operator in a FOR loop?
RESULT_CACHE
array
..
after
36. A FOR loop can be indexed by numbers or by a ______.
rollback to ab
a cursor
cursor
constrained
37. Exceptions: The ________ handler must always be the last handler.
buffer
NDS
OTHERS
GET_LINES
38. What are two categories of SQL functions that cannot be used in procedural statements?
Abstract
RESULT_CACHE
aggregate - analytical
ex := tbl1 MULTISET EXCEPT tbl2
39. Cursors: A Cursor FOR loop does not use a ______ statement.
.
elsif
varray
FETCH
40. Types: One of the 4 PL/SQL things that have a data type (begins with 'r').
current BEGIN-END block
/*
REF CURSOR
return value
41. The collection method that tells the number of elements in the collection.
1
include
COUNT
reference
42. The 2 characters that begin all inquiry directives.
cannot
Wrap
$$
;
43. Types: One of the 4 PL/SQL things that have a data type (begins with 'c').
constant
Oracle
nested
INTO
44. Types: The only Oracle datetime type that doesn't begin with TIMESTAMP is ________.
DATE
$IF
savepoint ab
DR
45. Types: ______ data types are those storing values with no internal components.
pseudocolumn
fields
scalar
SQLPlus
46. An ordinary character literal is composed of characters in the ________ character set.
CHARARR
virtual machine
database
%BULK_ROWCOUNT
47. With a result-cached function - it uses a cached value when the function is called again with the...
same arguments
OTHERS
CHAR - VARCHAR2
PL/SQL
48. This is a CASE (expression / statement): CASE num WHEN 1 THEN goto LABEL1 WHEN 2 THEN var := 2 END CASE;
<> - != - ^=
unqualified
inclusive
statement
49. Exceptions: An exception in the declarations section propagates to the enclosing _______.
finishes
collections - records
block
significant
50. A CASE statement (can / cannot) execute more than one group of statements.
searched
%ROWTYPE
cannot
names