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. Web: mod_plsql is an implementation of the PL/SQL _________.
not a number
Gateway
placeholders
EXIT
2. The two kinds of CASE statements are simple and ________.
BOOLEAN
scalar
EXIT
searched
3. Cursors: A cursor FOR loop cannot use a _______ variable.
cursor
can
follows
TYPE tN IS TABLE of NUMBER
4. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?
anonymous block
collections
32 -000
5. Language that PL/SQL is derived from.
EXIT
Ada
index
mandatory
6. Labels for blocks and statements are enclosed in '__' brackets.
cached
FORALL and BULK COLLECT
<<>>
OTHERS
7. The _____ utility turns PL/SQL source code into unreadable text.
base
null string
fetch C into V
Wrap
8. Cursors: A cursor that lives in session memory until the session ends.
DEFINER
RETURN
session cursor
network
9. DynSQL: Native Dynamic SQL
statement
NDS
subtype
currval and nextval
10. Cursors: If you use an EXIT statement to exit a cursor FOR loop prematurely - the cursor (is / is not) closed automatically.
is
open C(p)
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
EXTEND
11. Types: ________ data types have no internal components.
type T is ref cursor
cursor
invoker's
scalar
12. If an initialized collection has no elements - FIRST and LAST return _____.
DATE
execute
exception
13. Value of PLSQL_OPTIMIZE_LEVEL that prevents optimization.
type T is ref cursor
lower sub-block
1
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
14. _________ exceptions can not be trapped with an error handler
cannot
Declaration
associative
lock
15. A (simple / searched) CASE statement begins with CASE WHEN <boolean expression>.
RECORD OF ARRAYS
executable
EXIT
searched
16. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.
lower sub-block
suspended
SQLPlus
REF_CURSOR
17. Types: ______ data types are those storing values with no internal components.
slower
CLOSE
scalar
library
18. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.
inclusive
255
fine-grained auditing
$END
19. Types: The only Oracle datetime type that doesn't begin with TIMESTAMP is ________.
DATE
must
multi-row
information that changes infrequently
20. IDs: You (can/cannot) use keywords as ordinary user-defined identifiers.
EXCEPTION_INIT
can
database
invoker's
21. Exceptions: The ________ function returns the error message associated with an error code.
elements - type
SQLERRM
implicit
CHARARR
22. Web: mod_plsql is an _______ module.
suspended
SUBTYPE numb IS number;
$IF
Apache
23. Fundamental: Which one of these is a compound symbol: = - :=
cannot
:=
CREATE TYPE
EXIT
24. Cursors: The value of SQL%ISOPEN is always ______.
error
FALSE
1
injection
25. A type of compiler directive - begins with 'i'.
-
inquiry
an AUTHID property
does not
26. Mode designation for an input parameter.
REF_CURSOR
SQLERRM
IN
TYPE tV IS VARRAY(100) OF NUMBER
27. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.
4
**
collections - records
user-defined
28. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.
HTF
RETURN
cannot
API
29. The method to add one or more elements to a nested table or VARRAY is ______.
EXTEND
p.v
exit when cgo%NOTFOUND
nested tables - associative arrays
30. User-defined compiler directives are defined in this system compile parameter.
after insert on emps
PVM
PLSQL_CCFLAGS
cursor number
31. Wrap iname=xxxx _____=zzzzz
end
REF_CURSOR
numeric and cursor
oname
32. Which two collection types are unbounded?
procedure - function
nested tables - associative arrays
associative arrays
specification - body
33. For a collection - the NEXT method gets the next higher (element / index).
TRUE - FALSE and NULL
index
package
definition
34. Bulk: The two features that comprise Bulk SQL are:
package
1 million
FORALL and BULK COLLECT
RETURN
35. Fundamental: One of the 4 types of lexical units: c_____.
TRUE - FALSE and NULL
compilation
after insert on emps
comments
36. You (can/cannot) put a label before an END LOOP statement.
same
placeholders
cannot
value
37. A numeric FOR loop cannot _________ by other than 1?
IN
constructor
parameter
increment
38. Types: Which type of arithmetic does PLS_INTEGER use - library or hardware?
hardware
network
pls_integer
composite
39. NAN stands for _________.
variable
not a number
procedure P AUTHID definer;
nested
40. Cursors: What are the 3 possible values of SQL%FOUND and SQL%NOTFOUND?
sequence pseudo-columns
PLSQL_CCFLAGS
SQLERRM
TRUE - FALSE - NULL
41. Exceptions: An unhandled exception ________ to the enclosing block.
WHERE CURRENT OF
3
%
propagates
42. Command used to execute dynamic SQL.
STANDARD
integer
nested
EXECUTE IMMEDIATE
43. The four keywords that define a PL/SQL block.
is not
2
DECLARE - BEGIN - EXCEPTION - END
implicit
44. Cursors: What is the 'name' of the implicit cursor?
SQLPlus
PVM
SQL
30
45. Delimiters: The remote access symbol.
anonymous
STANDARD
@
bytecode
46. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.
procedure - function
definition
Declaration
implicit cursor
47. INSTEAD OF triggers are alternatives to ___ triggers
OPEN_CURSOR
1 million
DML
can
48. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.
for each row
fetch cv into myvar
closed
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
49. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.
EXECUTE IMMEDIATE
forward
native dynamic
selection
50. Statement to exit a cursor loop on cursor cGo when there are no more records.
DATE '2005-12-25'
exit when cgo%NOTFOUND
anonymous
RAISE