SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. You (can/cannot) put a label before an END LOOP statement.
PUT
pseudocolumn
bind
cannot
2. Exceptions: The three words that can be used to guarantee all exceptions will be handled.
..
null string
WHEN OTHERS THEN
anonymous
3. Abbreviation of invoker's rights
calls
IR
multi-row
EXIT WHEN
4. Triggers: By default - a trigger is created in the ______ state.
BINARY_INTEGER
enabled
BINARY_INTEGER
unconstrained
5. Web: mod_plsql is an _______ module.
ADT
-
Apache
searched
6. The lowest index of a VARRAY is ___.
1
numeric and cursor
memory
CURSOR - RETURN - IS
7. Define a collection type - tA - which is an associative array of NUMBERS - indexed with varchar2(20) values.
TYPE tA IS TABLE OF NUMBER INDEX BY VARCHAR2(20)
non-editioning views
CLOSE
FETCH
8. Types: Which type of arithmetic does NUMBER use - library or hardware?
4K
library
select
elsif
9. The FOR UPDATE OF clause references a (table / column).
closed
definer's
database
column
10. Dbms_sql: The return type DBMS_SQL.open_cursor.
lock
%BULK_ROWCOUNT
DBMS_DDL
integer
11. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?
DBMS_DDL
CURRENT OF
END
12. Are good for logging table DML operations.
buffer
autonomous triggers
@
cannot
13. Pkgs: The _______ package gives access to such SQL things as ALTER SESSION.
DML
name-value
DBMS_SESSION
bind arguments
14. _______ arrays can be sparse or dense - depending on how you fill them.
variable
associative
can
ALTER SESSION
15. Web: PL/SQL ______ ______ (PSPs) let you develop web pages with dynamic content.
-
vname CONSTANT VARCHAR2 := 'x';
Server Pages
EXECUTE
16. An INSTEAD OF trigger specifies what to do instead of a ___ statement.
DML
bytecode
composite
an enclosing block
17. What clause makes a compilation default to the PLSQL_CCFLAGS settings from the last compilation?
REUSE SETTINGS
ADT
REF_CURSOR
v2 IN NUMBER default 20
18. Cursors: Give the first 3 words to open a cursor variable called cv.
SYS_REFCURSOR
cannot
PLSQL_CCFLAGS
open cv for
19. Types: A data type family consists of a ______ type and its subtypes.
associative
bytecode
OPEN_CURSOR
base
20. Characters that begin a single-line comment.
NEW
SQLPlus
-
PUT_LINE
21. The AUTHID property applies to PL/SQL objects that contain _____.
array
cannot
stored
code
22. Cursors: A cursor with a name is an _________ cursor.
WHERE CURRENT OF
code
native dynamic
explicit
23. Abbreviation of definer's rights
Oracle
$$PLSQL_LINE
DR
timing
24. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.
$IF
elements - type
view
v3 IN OUT NUMBER
25. Fundamental: What are the 3 compound symbols for 'not equal to'?
CURSOR - RETURN - IS
<> - != - ^=
IN
close C
26. Wrap iname=xxxx _____=zzzzz
open C
oname
source
lowest
27. Declare a number variable - A - initialized to 10.
implicit
a number := 10
type T is ref cursor
L.V
28. Where an external subprogram is stored.
must
REUSE SETTINGS
in the database
Declaration
29. To get the current value of CURRENT_SCHEMA - CURRENT_USER - or SESSION_USER - use the ____ function.
SYS_CONTEXT
RAISE
DATE
Server Pages
30. Cursors: The values plugged into the DML in a FORALL must come from existing - populated _________.
collections
oname
Keywords and predefined names.
block
31. The attribute used to get the type of a column or variable without knowing what it is.
machine
Ordinary - Quoted.
%TYPE
drop procedure
32. If you are in a procedure inside a package - the compilation unit is the _______.
unhandled
package
set serveroutput on
must
33. Cursors: Only a _____ _____ cursor can appear in the CURRENT OF clause of an UPDATE or DELETE statement.
slower
SQLERRM
FOR UPDATE
Wrap
34. If none of a CASE expression's conditions are TRUE - it returns _____.
commit - rollback
fields
cannot
35. Packaged constants can synchronize programs through use in _______ directives.
associative
selection
statically
FGA
36. Exceptions: A GOTO statement cannot branch into an _______ ________.
follows
USER_PROCEDURES
cursor
exception handler
37. With dynamic typing - type checking is done at ______time.
memory
run
calls
FORALL and BULK COLLECT
38. DynSQL: The standard package that does dynamic SQL.
mandatory
end
DBMS_SQL
do not
39. Types: The only PL/SQL type for which you can specify a range constraint.
FORALL i IN MyList.FIRST..MyList.LAST
r t.%ROWTYPE;
compiles
PLS_INTEGER
40. FOR-Looping over a collection from FIRST to LAST only works if the collection is _______.
implicit cursor
PLS_INTEGER
integrated
dense
41. A type of compiler directive - begins with 's'.
enabled
DATE
selection
elements - type
42. The three possible values of a BOOLEAN literal.
Gateway
True - false or NULL.
alter procedure
column
43. Give the clause you add to a CREATE TABLE statement - when there is a collection column myColl - that you want to be stored in a table called myCollTab.
2
30
NESTED TABLE myColl STORE AS myCollTab
order
44. Cursors: The FOR UPDATE phrase goes at the (beginning/end) of the cursor definition.
NDS
RELIES_ON
sequence pseudo-columns
end
45. Cursors: What implicit cursor attribute gives row counts for a FORALL statement?
is not
an AUTHID property
%BULK_ROWCOUNT
cannot
46. Type: A __________ subtype has only a subset of the values of its base type.
1
SUBTYPE n IS number not null;
constrained
4
47. True encryption is done with package __________.
delimiters
Abstract
can
DBMS_CRYPTO
48. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE
WHERE CURRENT OF
TOO_MANY_ROWS
ALTER SESSION
RETURN
49. I/O: The DBMS_OUTPUT function that writes output without a newline character.
include
True
bytecode
PUT
50. An ordinary character literal is composed of characters in the ________ character set.
SYS_CONTEXT
database
savepoint ab
SESSION_USER