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. Fundamental: One of the 4 types of lexical units: L_____
composite
RAISE
literals
nested
2. Exceptions: A GOTO statement cannot branch into an _______ ________.
exception handler
1 million
enabled
%BULK_ROWCOUNT
3. Kind of code created by the PL/SQL compiler.
explicit
pls_integer
subtype
bytecode
4. Triggers: The clause to make a trigger run before inserting or updating table EMPS.
binding
fields
a cursor
before insert or update on emps
5. An editioning view can only select a subset of the columns from the base table and provide ________ for them
open C
aliases
CHAR - VARCHAR2
user-defined
6. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.
invoker's
native dynamic
Declaration
..
7. Cursors: The value of SQL%ROWCOUNT after a SELECT INTO statement returns more than one row.
run
1
subtype
END
8. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.
OTHERS
dense
FETCH - BULK COLLECT INTO
enabled
9. In interpreted mode - the PL/SQL VM interprets the _________.
must
DR
PRAGMA AUTONOMOUS_TRANSACTION;
bytecode
10. Assignment of PLSQL_CCFLAGS (cannot / can) be included in ALTER PROCEDURE ... COMPILE ...
compilation
server
value
can
11. Keyword for doing assignment to a variable with SELECT.
CURRENT OF
alter procedure
INTO
elements
12. Web: The gateway that allows a web browser to invoke a PL/SQL procedure through an HTTP listener.
an autonomous routine
disable
cursor
PL/SQL Gateway
13. Cursors: A session cursor that a PL/SQL user creates and manages.
Gateway
explicit cursor
not the same
1
14. By default - an IN parameter is passed by ______.
1 million
=
reference
selection
15. Data dictionary view that shows the compiler settings for each compiled object.
numeric and cursor
literal
USER_PLSQL_OBJECT_SETTINGS
CURRENT_USER
16. Conversion: If the specific value is suitable - ____ or _______ values can convert to almost any datatype
include
after
CHAR - VARCHAR2
RECORD OF ARRAYS
17. Types: ________ data types have internal components.
inquiry
network
composite
implicit
18. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';
ALTER SESSION
system global area
NEW
-
19. Advantage: Caching of programs and sharing among users lowers _______ requirements.
memory
set serveroutput on
exception handler
$IF
20. Cursors: Give the statement to open cursor C.
reference
is not
SQL
open C
21. You cannot bulk collect into an ARRAY OF ________.
fail
TIMESTAMP.
manageable
RECORDS
22. Set flag bb true: ALTER SESSION SET PLSQL_CCFLAGS= '____'
elsif
expression
bb:true
VARCHAR2
23. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.
DML
commit - rollback
bind
slower
24. Types: One of the 4 PL/SQL things that have a data type (begins with 'r').
return value
RECORD OF ARRAYS
information that changes infrequently
cursor variable
25. Wrapping can be done with the ____ executable.
CHAR - VARCHAR2
wrap
drop procedure
Gateway
26. Bulk: The two features that comprise Bulk SQL are:
explicit
FORALL and BULK COLLECT
autonomous triggers
an enclosing block
27. The 2 characters that begin all inquiry directives.
manageable
never
in the database
$$
28. Java - C or other program called directly in PL/SQL.
NEW
database
delimiters
external subprogram
29. A FOR loop can be indexed by numbers or by a ______.
elements - type
FORALL and BULK COLLECT
selection
cursor
30. Exceptions: Start of the range of error codes for RAISE_APPLICATION_ERROR.
v3 IN OUT NUMBER
run
selection
-20 -000
31. For a collection - the NEXT method returns ____ when there is no next index value.
HTF
literal
searched
32. Triggers: The code in a trigger is actually an ________ block.
an enclosing block
definer's
anonymous
REF_CURSOR
33. A numeric FOR loop cannot _________ by other than 1?
increment
implicit
not the same
ENABLE
34. A SELECT statement with the FOR UPDATE clause puts a ______ on the selected rows.
definer's
implicit cursor
implicit
lock
35. I/O: This package has hypertext procedures that generate HTML tags
OUT
Server Pages
HTP
fine-grained auditing
36. The Wrap utility ________ the source code.
virtual machine
obfuscates
non-editioning views
RECORDS
37. The EXCEPTION section is (optional/mandatory).
optional
never
255
END LOOP
38. The source for wrapping begins with the word ______.
unqualified
autonomous triggers
Ada
create
39. Web: PL/SQL _______ enables a Web browser to invoke a PL/SQL stored subprogram through an HTTP listener.
associative
FGA
Gateway
anonymous block
40. The allowed data types of user-defined conditional compilation directives are boolean and _______.
upper - coalesce
is
statically
pls_integer
41. Associative arrays (do / do not) have to be initialized with a constructor.
v1 OUT number default 10
CHAR - VARCHAR2
do not
scalable
42. Cursors: The value of SQL%ISOPEN is always ______.
FALSE
expression
set serveroutput on
ROLLBACK
43. Types: One of the scalar data types specific to PL/SQL: R_________.
flushed
does not
REF_CURSOR
GET_LINE
44. Advantage: PL/SQL supports ______-oriented programming.
unconstrained
CHARARR
object
composite
45. The $ERROR directive is used to make compilation ____.
SESSION_USER
fail
constrained
FETCH
46. IDs: Predefined identifiers are declared in this package.
@
package
flushed
STANDARD
47. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.
SYS_CONTEXT
EXIT
exception handler
anonymous block
48. You (can/cannot) put a label before an END LOOP statement.
cannot
IR
BOOLEAN
49. What are two categories of SQL functions that cannot be used in procedural statements?
aggregate - analytical
PVM
an autonomous routine
raise_application_error(-20 -100 - 'Bad');
50. The inquiry directive that gives the current line number in the procedure.
Ordinary - Quoted.
drop procedure
create
$$PLSQL_LINE