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. 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
2. Types: One of the 4 PL/SQL things that have a data type (begins with 'c').
WHEN
constant
multi-row
is
3. A result-cached function caches its results in the _____ _____ ____ (SGA)
executable
query
IS
system global area
4. The best candidates for result-caching are functions that are invoked frequently but depend on __________________ or never.
composite
512
EXIT
information that changes infrequently
5. A GOTO cannot branch into an...
expression
FALSE
IF - CASE or LOOP
open C(p)
6. If none of a CASE expression's conditions are TRUE - it returns _____.
include
scalable
1
7. CREATE TYPE cannot be used for _______ array types.
alter procedure
associative
open C(p)
PLSQL_CCFLAGS
8. With static typing - type checking is done at ______ time.
close C
compile
explicit
DATE '2005-12-25'
9. Conversion: Just about everything will implicitly convert to _____ or _________.
explicit
do not
CHAR - VARCHAR2
4
10. PLS_INTEGER has its arithmetic implemented in ________ - so it is very fast.
can
package
hardware
UTL_SMTP
11. Advantage: Performance: PL/SQL automatically creates ______ variables for variables in WHERE and VALUES clauses.
*/
anonymous
bind
cannot
12. The Wrap utility (does / does not) encrypt source code.
anonymous
does not
null string
inquiry
13. Delimiters: Item separator.
r t.%ROWTYPE;
cached
dynamic
14. In the IF syntax - is if ENDIF or END IF?
deletions
ex := tbl1 MULTISET EXCEPT tbl2
END IF
portable
15. Triggers: The clause to make a trigger run after inserting into table EMPS.
TRUE - FALSE - NULL
<<
after insert on emps
database
16. The NOCOPY option on an OUT or IN OUT parameter - causes it to be passed by ______.
reference
error code
Web Toolkit
definition
17. If an initialized collection has no elements - FIRST and LAST return _____.
can
create
unconstrained
18. A FOR-loop counter is defined only within the _____.
versions
composite
an autonomous routine
loop
19. What word is in a function header but not in a procedure header?
native dynamic
pseudocolumn
RETURN
PLS_INTEGER
20. Triggers: In a per-row trigger - the ____ record shows you the original state of an affected row.
loop
is
exit when cgo%NOTFOUND
OLD
21. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.
RETURN
RESULT_CACHE
compilation
function f (n number) return number result_cache relies_on (emps);
22. The _____ and ____ _____ collection types can be used in database table columns.
TYPE tN IS TABLE of NUMBER
not the same
VARRAY - Nested table
SQLCODE
23. A FOR loop can be indexed by numbers or by a ______.
cursor
drop procedure
index
DML
24. Exceptions: The maximum length of an Oracle error message is ____ characters
VARCHAR2
loop
512
DML
25. Exceptions: If there is no handler for an exception - PL/SQL returns an ________ exception error to the invoker or host environment.
%FOUND - %ISOPEN - %NOTFOUND - %ROWCOUNT
follows
unhandled
disable
26. Triggers: The code in a trigger is actually an ________ block.
anonymous
execute immediate
RECORDS
512
27. Cursors: The value of SQL%ROWCOUNT after a SELECT INTO statement returns more than one row.
1
RECORD OF ARRAYS
<<
numeric and cursor
28. A subprogram created inside a block is a _________ subprogram.
:=
nested
associative
for each row
29. Value of a character literal with zero characters.
a cursor
USING
OPEN_CURSOR
30. A GOTO statement cannot branch from an exception handler back into the...
current BEGIN-END block
Declaration
ADT
SUBTYPE numb IS number;
31. An editioning view is like an ____ for a table.
block
TRUE - FALSE and NULL
API
anonymous
32. Exceptions: Associate exception E with error code -1.
CHAR - VARCHAR2
REF CURSOR
PRAGMA EXCEPTION_INIT (E - -1);
VARCHAR2
33. In the special IF syntax - is it ELSIF - or ELSEIF?
elsif
1 million
WHEN OTHERS THEN
collections - records
34. INSTEAD OF triggers are alternatives to ___ triggers
DML
Wrap
IN OUT
CLOSE_CURSOR
35. Give the statement to make a program autonomous.
label
Abstract
TYPE tA IS TABLE OF NUMBER INDEX BY VARCHAR2(20)
PRAGMA AUTONOMOUS_TRANSACTION;
36. From a block nested inside a procedure P - reference variable V of the outer procedure.
cursor
Apache
p.v
=
37. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.
cannot
OTHERS
inquiry
38. Cursors: A pointer to a cursor is called a ______ _______.
SQLERRM
exception
END
cursor variable
39. What clause makes a compilation default to the PLSQL_CCFLAGS settings from the last compilation?
WHERE CURRENT OF
REUSE SETTINGS
Ordinary - Quoted.
5
40. PL/SQL lets you define two kinds of composite data types: _______ and _______
cursor
;
IN OUT
collections - records
41. Cursors: Give the first 3 words to open a cursor variable called cv.
execute immediate
an autonomous routine
nested
open cv for
42. DynSQL: EXECUTE IMMEDIATE can be used for any SQL statement or PL/SQL block - except for ________ queries.
multi-row
1
ROLLBACK
bytecode
43. An incomplete type is a type created by a ______ type definition.
does not
forward
upper - coalesce
composite
44. A nested table has to be initialized using a ________ - named the same as the type.
CHAR - VARCHAR2
constructor
network
1 million
45. Dbms_sql: The DBMS_SQL procedure that closes a cursor.
NDS
$IF
PLS_INTEGER
CLOSE_CURSOR
46. The FORALL statement to loop over a collection MyList using index i.
EXECUTE IMMEDIATE
CLOSE
select
FORALL i IN MyList.FIRST..MyList.LAST
47. Command to create a procedure.
create procedure
raise_application_error
RECORD OF ARRAYS
specification - body
48. Cursors: The statement where you pass the parameters to a cursor.
@
$IF
SQLCODE
OPEN
49. The $ERROR directive is used to make compilation ____.
sequence pseudo-columns
transaction
fail
compiles
50. Dbms_sql: The return type DBMS_SQL.open_cursor.
aliases
follows
integer
integrated