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. Characters that end a multi-line comment.
SUBTYPE numb IS number;
IN - OUT - IN OUT
decimal
*/
2. Exceptions: The ________ function returns the error message associated with an error code.
optional
SQLERRM
increment
L.V
3. The first SQL statement in an autonomous routine begins a _______.
transaction
anonymous
associative
not a number
4. A (simple / searched) CASE statement begins with CASE <expression>.
3
is not
EXIT WHEN
simple
5. A PL/SQL block that is not stored.
composite
anonymous block
source code
FETCH
6. Mode designation for an input/output parameter.
finishes
library
1
IN OUT
7. Cursors: The Oracle predefined REF CURSOR type.
FALSE
variable
SYS_REFCURSOR
Reserved words.
8. The PL/SQL ________ evaluates compiler directives.
CURSOR - RETURN
preprocessor
r tRec := tRec(9 - 'Jones');
TYPE tV IS VARRAY(100) OF NUMBER
9. IDs: The 3 non-alphanumeric characters that can be in an ordinary user-defined identifier.
value
national
# - $ - _
PLS_INTEGER
10. IDs: The two types of words that can - but should not - be used as user-defined identifiers.
STANDARD
Keywords and predefined names.
source
**
11. A (simple / searched) CASE statement begins with CASE WHEN <boolean expression>.
DBMS_PIPE
REF CURSOR
searched
cursor number
12. Triggers: By default - a trigger is created in the ______ state.
exception
nested
run
enabled
13. For a collection - the NEXT method returns ____ when there is no next index value.
dynamic
FORALL i IN MyList.FIRST..MyList.LAST
information that changes infrequently
14. An ordinary character literal is composed of characters in the ________ character set.
GET_LINES
collections - records
elements
database
15. I/O: The buffered output of dbms_output.put_line is retrieved by _______.
anonymous
obfuscates
SQLPlus
flushed
16. If you are in a procedure inside a package - the compilation unit is the _______.
DBMS_PIPE
colon
UTL_SMTP
package
17. Delimiters: Item separator.
IN
bind
$IF $THEN $ELSE $END
18. A type of compiler directive - begins with 'i'.
constructor
return value
v1 OUT number default 10
inquiry
19. I/O: The DBMS_OUTPUT function that writes output WITH a newline character.
PUT_LINE
dynamic
follows
run
20. Triggers: There are __ types of triggers.
2
IF - CASE or LOOP
invoker's
5
21. Cursors: A session cursor that a PL/SQL user creates and manages.
inquiry
after
expression
explicit cursor
22. Setting CURRENT_SCHEMA only changes what is prepended to __________ references.
SYS_CONTEXT
PLS_INTEGER
unqualified
database
23. The Wrap utility ________ the source code.
obfuscates
cannot
nested tables - associative arrays
IF - CASE or LOOP
24. Fundamental: identifiers (include/do not include) reserved words.
finishes
create
include
cannot
25. Are good for logging table DML operations.
open C(p)
autonomous triggers
32 -000
transaction
26. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.
dense
EVERE - PERFORMANCE - INFORMATIONAL
do not
code
27. I/O: The most basic PL/SQL way to give output to the user.
dbms_output.put_line
cursor number
@
calls
28. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.
EVERE - PERFORMANCE - INFORMATIONAL
IS
decimal
29. IDs: What a quoted user-defined identifier is enclosed in.
a number := 10
Double quotes.
object
an enclosing block
30. To use a TYPE declared in the database - a PL/SQL block has to have _______ privilege on the type.
select
closed
transaction
3
31. The FOR UPDATE OF clause references a (table / column).
...
is not
finishes
column
32. Web: mod_plsql is an implementation of the PL/SQL _________.
do not
variable
EDITION_NAME
Gateway
33. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.
-
Reserved words.
DBMS_SESSION
buffer
34. A GOTO statement can branch from an exception handler into...
an enclosing block
production
do not
fetch cv into myvar
35. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.
FORALL i IN MyList.FIRST..MyList.LAST
view
%
do not
36. Exceptions: The maximum length of an Oracle error message is ____ characters
512
associative
in the database
v1 OUT number default 10
37. Data dictionary view giving the AUTHID values on a user's objects.
compiles
return value
USER_PROCEDURES
injection
38. Exceptions: Pragma that links an exception to an Oracle error code.
EXCEPTION_INIT
OPEN
-
preprocessor
39. Cursors: What implicit cursor attribute gives row counts for a FORALL statement?
invoker's
%BULK_ROWCOUNT
REF_CURSOR
EXCEPTION_INIT
40. Cursors: Which cursor attribute is not meaningful for an implicit cursor?
current BEGIN-END block
4K
%ISOPEN.
integrated
41. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.
database
decimal
upper - coalesce
transaction
42. With a result-cached function - it uses a cached value when the function is called again with the...
same arguments
invoker's
*/
definition
43. Cursors: Closing keywords of a cursor FETCH loop.
END LOOP
explicit
.
follows
44. Cursors: Give the statement to fetch data from cursor variable CV into MyVar.
CREATE TRIGGER
fetch cv into myvar
cannot
in the database
45. Cursors: A cursor FOR loop cannot use a _______ variable.
USER_PROCEDURES
cursor
explicit
SESSION_USER
46. Exceptions: An exception in the declarations section does not go to the __________ section.
RETURN
fine-grained auditing
exception
database
47. Triggers: When using the NEW or OLD pseudo-records in the body of the trigger - they must be prefixed with a _______.
preprocessor
timing
nested
colon
48. A CASE statement (can / cannot) execute more than one group of statements.
cannot
FGA
expression
aliases
49. Fundamental: What is the range operator?
IN OUT
an autonomous routine
..
EXIT
50. What do you FETCH from?
a cursor
True
Keywords and predefined names.
block
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests