SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
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. Types: Which type of arithmetic does PLS_INTEGER use - library or hardware?
VARCHAR2
hardware
EXIT WHEN
DML
2. Fundamental: One of the 4 types of lexical units: i_____
SUBTYPE numb IS number;
UTL_SMTP
binding
identifiers
3. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.
compile
cursor
DBMS_PREPROCESSOR
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
4. Exceptions: The built-in procedure for raising an application-defined error.
DBMS_PREPROCESSOR
fine-grained auditing
in the database
raise_application_error
5. Delimiters: The remote access symbol.
*/
TYPE tV IS VARRAY(100) OF NUMBER
cannot
@
6. Types: The storage size of a NUMBER value is based on the number of ______ digits.
significant
Ada
ROLLBACK
savepoint ab
7. Cursors: Give the statement to fetch data from cursor C into variable V.
implicit cursor
UTL_FILE
PLS_INTEGER
fetch C into V
8. Bytecode is _______ _______ code.
virtual machine
invoker's
anonymous
GET_LINE
9. Fundamental: What is the range operator?
database
associative
..
raise_application_error
10. Internally - the NUMBER type is stored as ______. Therefore - decimal numbers (such as prices) are stored exactly - with no rounding.
decimal
for each row
unqualified
TYPE rec IS RECORD (num NUMBER - name VARCHAR2(10));
11. Exceptions: The keyword that begins an exception handler.
expression
bytecode
WHEN
boolean
12. Delimiters: The left label delimiter.
<<
%ISOPEN.
Abstract
IN OUT
13. A CASE expression ends with _____.
FOR - IN
can
cannot
END
14. Associative arrays (do / do not) have to be initialized with a constructor.
-
DATE '2005-12-25'
do not
bind
15. Exceptions: Each internal exception has an Oracle ______ _______.
production
error code
4K
PVM
16. A ___________ behaves like a table column - but it is not stored in the table.
3
pseudocolumn
definition
EXECUTE
17. DynSQL: Native Dynamic SQL
boolean
cannot
enabled
NDS
18. The lowest index of a nested table is ___.
<<
RECORD OF ARRAYS
1
integrated
19. If a result-cached function's data source (based on the RELIES_ON clause) is updated - any cached results become _______.
invalid
UTL_HTTP
predefined
in the database
20. Web: PL/SQL ______ ______ (PSPs) let you develop web pages with dynamic content.
Server Pages
3
statement
constructor
21. Command to assign to variables from a cursor.
FETCH
$$
TRUE - FALSE and NULL
lower sub-block
22. Declare an input NUMBER parameter - v2 - that defaults to 20.
function f (n number) return number result_cache relies_on (emps);
suspended
TYPE tV IS VARRAY(100) OF NUMBER
v2 IN NUMBER default 20
23. An autonomous program runs in its own __________.
obfuscates
transaction
production
finishes
24. In the special IF syntax - is it ELSIF - or ELSEIF?
explicit
With a letter.
SQL cursor
elsif
25. Triggers: When using the NEW or OLD pseudo-records in the body of the trigger - they must be prefixed with a _______.
DBMS_SQL
elements
colon
will not
26. Web: mod_plsql is an implementation of the PL/SQL _________.
$IF
must
cursor c;
Gateway
27. I/O: The output from DBMS_OUTPUT will display (during/after) program execution.
unqualified
fields
exception
after
28. Advantage: PL/SQL runs anywhere Oracle runs - so it is very ________.
integer
ordinary
portable
do not
29. Command used to execute dynamic SQL.
EXECUTE IMMEDIATE
PL/SQL Gateway
OUT
package
30. If none of a CASE expression's conditions are TRUE - it returns _____.
associative
FOR - IN
external subprogram
31. You can put a label before any executable PL/SQL _________.
statement
statically
v2 IN NUMBER default 20
INTO
32. Characters that begin a multi-line comment.
DBMS_SQL
HTF
/*
COMMIT - ROLLBACK - SAVEPOINT - SET TRANSACTION
33. Types: A data type family consists of a ______ type and its subtypes.
base
TYPE tA IS TABLE OF NUMBER INDEX BY VARCHAR2(20)
array
UTL_SMTP
34. This is a CASE (expression / statement): CASE num WHEN 1 THEN goto LABEL1 WHEN 2 THEN var := 2 END CASE;
statement
constant
3
static boolean
35. Give the first line of the FOR loop with index i going from 1 to 10 in reverse.
Gateway
TOO_MANY_ROWS
FOR i IN REVERSE 1..10 LOOP
PLS_INTEGER
36. Triggers: The clause to make a trigger run after inserting into table EMPS.
OLD
after insert on emps
DEFINER
ADT
37. Unlike the CASE statement - the CASE expression does not have the...
unhandled
cursor
implicit CASE_NOT_FOUND exception
EDITION_NAME
38. Native compilation turns bytecode into ________ code.
machine
invoker's
simple and compound symbols
FETCH
39. Declare a cursor c with no parameters - and return type rC.
IR
Declaration
name
cursor c RETURN rC;
40. Cursors: If you use an EXIT statement to exit a cursor FOR loop prematurely - the cursor (is / is not) closed automatically.
USER_PROCEDURES
integer
is
can
41. An $ERROR directive ends with _____.
explicit
$END
DATE
DBMS_DDL
42. Abbreviation of definer's rights
expression
execute immediate
DR
DEFINER
43. Types: The only PL/SQL type for which you can specify a range constraint.
PLS_INTEGER
hardware
order
DML
44. Cursors: A pointer to a cursor is called a ______ _______.
cursor variable
searched
CURRENT_USER - DEFINER
is
45. TCL: Undo changes back to savepoint ab.
SYS_CONTEXT
rollback to ab
DBMS_DDL
execute immediate
46. Fundamental: Delimiters are _____ and _____ symbols.
name-value
not the same
network
simple and compound symbols
47. The four keywords that define a PL/SQL block.
cached
DECLARE - BEGIN - EXCEPTION - END
code
scalable
48. With static typing - type checking is done at ______ time.
anonymous block
fetch cv into myvar
forward
compile
49. Assigning values to PL/SQL variables that appear in SQL statements is called _______.
VARCHAR2
inquiry
binding
%FOUND - %ISOPEN - %NOTFOUND - %ROWCOUNT
50. I/O: To make sure the DBMS_OUTPUT buffer will be flushed - put a WHEN ______ clause in the EXCEPTION section of your outer block.
exception handler
Gateway
integrated
OTHERS