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. I/O: This DBMS_OUTPUT proc retrieves one line from the buffer.
can
wrap
lowest
GET_LINE
2. Exceptions: The maximum length of an Oracle error message is ____ characters
CURRENT_USER - DEFINER
NUMBER
unconstrained
512
3. Term for a character literal with zero characters.
null string
sequence pseudo-columns
v3 IN OUT NUMBER
alter procedure
4. Into nested table ex - put elements of tbl1 that are not in tbl2.
ex := tbl1 MULTISET EXCEPT tbl2
3
With a letter.
PUT_LINE
5. Default file extension of wrap's input file.
CHAR - VARCHAR2
can
sql
finishes
6. User-defined compiler directives are defined in this system compile parameter.
PLSQL_CCFLAGS
procedure - function
user-defined
SQL cursor
7. Triggers: You create a trigger with the _______ ________ statement.
cannot
STANDARD
CREATE TRIGGER
RETURN
8. How to reference a variable V declared in a block labelled L: ____.
buffer
PL/SQL Gateway
EXIT
L.V
9. DynSQL: EXECUTE IMMEDIATE can be used for any SQL statement or PL/SQL block - except for ________ queries.
searched
CLOSE_CURSOR
multi-row
OLD
10. Give the ANSI Date literal for December 25 - 2005.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. Delimiters: Host variable indicator.
4K
suspended
SESSION_USER
...
12. Cursors: If an exception is raised inside a cursor loop - the cursor (is / is not) also closed automatically.
is
FGA
a number := 10
PRAGMA EXCEPTION_INIT (E - -1);
13. Advantage: PL/SQL runs anywhere Oracle runs - so it is very ________.
bb:true
ROLLBACK
portable
RETURN
14. Statement to set current schema to x: _____ _____ SET CURRENT_SCHEMA = 'x';
PL/SQL
memory
DBMS_CRYPTO
ALTER SESSION
15. Cursors: A cursor that lives in session memory until the session ends.
session cursor
TOO_MANY_ROWS
RETURN
error
16. Web: PL/SQL _____ _______ lets you to develop Web applications made of PL/SQL procedures.
buffer
IN - OUT - IN OUT
scalar
Web Toolkit
17. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.
names
closed
for update of
SYS_CONTEXT
18. Cursors: Define a ref cursor type called T.
%TYPE
SESSION_USER
a cursor
type T is ref cursor
19. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.
open C
DML
cannot
SQLERRM
20. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.
definition
machine code
unqualified
cursor
21. The source for wrapping begins with the word ______.
compiles
deletions
create
buffer
22. A GOTO cannot branch into an...
$$
SIMPLE_INTEGER
IF - CASE or LOOP
SYS_REFCURSOR
23. Types: ________ data types have no internal components.
=>
scalar
expression
collections
24. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.
suspended
session cursor
inquiry
WHEN OTHERS THEN
25. Cursors: What is the 'name' of the implicit cursor?
SQL
TRUE - FALSE and NULL
pseudocolumn
elements
26. In a FORALL loop - you (can / cannot) use the index variable for purposes other than indexing into the collection.
virtual machine
2
cannot
searched
27. By default - an IN parameter is passed by ______.
reference
EDITION_NAME
lock
ALTER SESSION
28. A __________ can have an AUTHID property
after
'ENABLE:SEVERE' - 'ERROR:06002'
$END
package
29. The default value of the AUTHID property.
EDITION_NAME
FORALL i IN MyList.FIRST..MyList.LAST
IF - CASE or LOOP
DEFINER
30. I/O: The buffered output of dbms_output.put_line is retrieved by _______.
SQLPlus
external subprogram
1
significant
31. Fundamental: One of the 4 types of lexical units: c_____.
SESSION_USER
unhandled
close C
comments
32. One good use of bind variables is to guard against SQL _______.
elsif
1
cursor
injection
33. The valid values of the AUTHID property.
cursor variable
index
OPEN_CURSOR
CURRENT_USER - DEFINER
34. Which two collection types are unbounded?
nested tables - associative arrays
END
$$PLSQL_LINE
UTL_FILE
35. Declare an input NUMBER parameter - v2 - that defaults to 20.
v2 IN NUMBER default 20
portable
can
Oracle
36. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.
SQL
numeric and cursor
function f (n number) return number result_cache relies_on (emps);
unqualified
37. In a collection - the internal components are called _______.
elements
Double quotes.
True - false or NULL.
label
38. In interpreted mode - the PL/SQL VM interprets the _________.
DBMS_PREPROCESSOR
bytecode
ADT
view
39. You can use the BULK COLLECT INTO clause in a SELECT or a ______.
RECORDS
$IF $THEN $ELSE $END
unqualified
FETCH
40. An editioning view can only select a subset of the columns from the base table and provide ________ for them
32 -000
STANDARD
1
aliases
41. Web: PL/SQL _______ enables a Web browser to invoke a PL/SQL stored subprogram through an HTTP listener.
Gateway
...
define
transaction
42. Cursors: The value of SQL%ROWCOUNT after a SELECT INTO statement returns more than one row.
searched
1
FETCH - INTO
is certain
43. Conversion: It is best to use (implicit / explicit) conversion.
SYS_CONTEXT
LOOP - END LOOP
VARCHAR2
explicit
44. Cursors: A Cursor FOR loop does not use a ______ statement.
FETCH
$IF
p.v
cursor
45. Value of PLSQL_OPTIMIZE_LEVEL that prevents optimization.
follows
1
DML
for each row
46. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.
does not
placeholders
static
-
47. A result-cached function caches its results in the _____ _____ ____ (SGA)
system global area
preprocessor
RECORD OF ARRAYS
*/
48. Exceptions: An exception in the declarations section propagates to the enclosing _______.
cannot
block
EXECUTE
an autonomous routine
49. Data dictionary view giving the AUTHID values on a user's objects.
SUBTYPE numb IS number;
USER_PROCEDURES
PRAGMA EXCEPTION_INIT (E - -1);
wrap
50. Cursors: The first two keywords of a basic fetch statement.
reference
invalid
FETCH - INTO
Gateway