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. An autonomous program runs in its own __________.
REF CURSOR
FGA
not a number
transaction
2. An INSTEAD OF trigger specifies what to do instead of a ___ statement.
can
DBMS_SQL
Web Toolkit
DML
3. Dbms_sql: DBMS_SQL package is compiled with _______ rights.
4. Web: Abbreviation of PL/SQL Server Page.
PSP
compiles
database
E Exception;
5. Cursors: A cursor that lives in session memory until the session ends.
strong
session cursor
EVERE - PERFORMANCE - INFORMATIONAL
finishes
6. For a collection - the NEXT method returns ____ when there is no next index value.
Wrap
cannot
constructor
7. Java - C or other program called directly in PL/SQL.
DML
memory
elements - type
external subprogram
8. Assignment of PLSQL_CCFLAGS (cannot / can) be included in ALTER PROCEDURE ... COMPILE ...
can
RECORD OF ARRAYS
numeric and cursor
value
9. A numeric FOR loop cannot _________ by other than 1?
identifiers
increment
column
currval and nextval
10. Cursors: The first two keywords in a Cursor FOR loop.
FOR - IN
an AUTHID property
PRAGMA AUTONOMOUS_TRANSACTION;
explicit cursor
11. VARRAYs are (always / never) sparse.
FETCH
never
object
lowest
12. How to reference a variable V declared in a block labelled L: ____.
GET_LINE
L.V
bind
INTO
13. With conditional compilation you can avoid compiling debug code in the _______ environment.
FETCH - INTO
production
%ISOPEN.
compilation
14. To run DDL statements - a trigger must be autonomous and must use ______ ______ SQL.
exit when cgo%NOTFOUND
after
native dynamic
CLOSE
15. The PL/SQL preprocessor passes ______ code to the compiler.
FOR UPDATE
source
2
transaction
16. Types: One of the 4 PL/SQL things that have a data type (begins with 'p').
procedure P AUTHID current_user;
parameter
commit - rollback
EXIT
17. I/O: One of the 3 types of data stored in the DBMS_OUTPUT buffer.
timing
DATE
TYPE tN IS TABLE of NUMBER
CHAR - VARCHAR2
18. The lowest index of a nested table is ___.
nested tables - associative arrays
BINARY_INTEGER
compile
1
19. Cursors: A cursor FOR loop can use an explicit or an _______ cursor.
implicit
DBMS_SESSION
forward
SYS_CONTEXT
20. I/O: The buffered output of dbms_output.put_line is retrieved by _______.
index
SQLPlus
bind
machine code
21. Cursors: Which cursor attribute is not meaningful for an implicit cursor?
network
%ISOPEN.
<<>>
.
22. Wrap iname=xxxx _____=zzzzz
oname
DML
bb:true
invoker's
23. Cursors: The value of SQL%ISOPEN is always ______.
SQLPlus
Server Pages
FETCH - INTO
FALSE
24. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.
USER_PLSQL_OBJECT_SETTINGS
255
after
CLOSE
25. Triggers: Unlike a stored procedure - you can enable and _____ a trigger.
buffer
disable
bytecode
HTF
26. A FOR loop can be indexed by numbers or by a ______.
server
cursor
1
scalable
27. Give the first line of the FOR loop with index i going from 1 to 10 in reverse.
optional
FOR i IN REVERSE 1..10 LOOP
PRAGMA EXCEPTION_INIT (E - -1);
*/
28. A value that is neither represented by an identifier nor calculated from other values.
disable
Declaration
optional
literal
29. In interpreted mode - PL/SQL code is run in a _______ _______.
column
virtual machine
WHEN
=
30. Exceptions: Declare an exception called E.
VARCHAR2
Gateway
E Exception;
$END
31. IDs: The type of words that cannot be user-defined identifiers.
COUNT
Reserved words.
sequence pseudo-columns
ROLLBACK
32. Advantage: Performance: PL/SQL automatically creates ______ variables for variables in WHERE and VALUES clauses.
FETCH - INTO
bind
bind arguments
OLD
33. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.
closed
SUBTYPE n IS number not null;
does not
implicit cursor
34. Kind of datatypes that support object-oriented programming in PL/SQL.
FORALL i IN MyList.FIRST..MyList.LAST
network
autonomous transaction
Abstract
35. If you are in a procedure inside a package - the compilation unit is the _______.
$$PLSQL_LINE
package
dynamic
-
36. Exceptions: Write the call (2 args) to associate message 'Bad' with error code -20 -100.
37. Exceptions: An exception in the declarations section does not go to the __________ section.
placeholders
4K
exception
value
38. Give the ANSI Date literal for December 25 - 2005.
39. Fundamental: One of the 4 types of lexical units: d_____
delimiters
DBMS_PIPE
increment
concatenation
40. Web: PL/SQL _______ enables a Web browser to invoke a PL/SQL stored subprogram through an HTTP listener.
network
CURRENT OF
static boolean
Gateway
41. What word is in a function header but not in a procedure header?
unhandled
EXIT WHEN cv%NOTFOUND
RETURN
national
42. 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.
NESTED TABLE myColl STORE AS myCollTab
inquiry
%
hardware
43. Types: The predefined subtype of PLS_INTEGER that has the NOT NULL constraint.
FETCH - BULK COLLECT INTO
procedure - function
ADT
SIMPLE_INTEGER
44. I/O: One of the 3 types of data stored in the DBMS_OUTPUT buffer.
RECORDS
NUMBER
DBMS_CRYPTO
single-line
45. Wrapping can be done with the ____ executable.
wrap
variable
BINARY_INTEGER
does not
46. Static typing is also called _____ typing.
compiles
INTO
5
strong
47. With a result-cached function - it uses a cached value when the function is called again with the...
PRAGMA AUTONOMOUS_TRANSACTION;
SQL
DBMS_DDL
same arguments
48. Cursors: A cursor FOR loop cannot use a _______ variable.
cursor
mandatory
significant
same arguments
49. The names of Java objects in Oracle can be up to __ characters in length.
4K
single-line
FORALL and BULK COLLECT
array
50. When a session starts - CURRENT_SCHEMA has the value of the schema owned by ___________.
quoted
CLOSE_CURSOR
network
SESSION_USER