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. Make a FOR loop that executes NULL 10 times counting in reverse - using index i.
Server Pages
FOR i IN REVERSE 1..10 - LOOP - NULL; END LOOP;
unhandled
True
2. Types: A ______ has the same valid operations as its base type.
cursor number
create
subtype
;
3. Conversion: Just about everything will implicitly convert to _____ or _________.
enabled
anonymous block
CHAR - VARCHAR2
5
4. Exceptions: The ________ function returns the current error code.
RETURN
after
IN OUT
SQLCODE
5. Cursors: The Oracle predefined REF CURSOR type.
expression
CURSOR - RETURN
Server Pages
SYS_REFCURSOR
6. Cursors: A pointer to a cursor is called a ______ _______.
$END
END IF
cursor variable
column
7. A pointer to a private SQL area that stores information about processing a specific SELECT or DML statement.
WHERE CURRENT OF
cursor
machine code
error
8. Default file extension of wrap's input file.
package
selection
sql
EXECUTE IMMEDIATE
9. When a parameter is passed by reference - changes made to it inside the procedure cannot be undone. True/False.
associative arrays
WHEN OTHERS THEN
True
cursor c RETURN rC;
10. Cursors: Which cursor attribute is not meaningful for an implicit cursor?
transaction
current
%ISOPEN.
COMMIT - ROLLBACK - SAVEPOINT - SET TRANSACTION
11. The FOR UPDATE OF clause references a (table / column).
STANDARD
column
procedure - function
wrap
12. Simple CASE statement checks for different values of a single _________
NDS
expression
optional
OLD
13. _______ arrays can be sparse or dense - depending on how you fill them.
cursor variable
associative
colon
network
14. In a sparse collection - the indexes of defined elements (do / do not) run in consecutive order.
ex := tbl1 MULTISET EXCEPT tbl2
associative
CHAR - VARCHAR2
do not
15. Cursors: You can just declare a cursor at first - then _______ it later.
do not
1
define
<<>>
16. Exceptions: The package that defines pre-defined exceptions.
Double quotes.
STANDARD
exception
stored
17. The _____ utility turns PL/SQL source code into unreadable text.
v2 IN NUMBER default 20
cursor number
sequence pseudo-columns
Wrap
18. Mode designation for an input/output parameter.
static boolean
lowest
NESTED TABLE myColl STORE AS myCollTab
IN OUT
19. A unit with AUTHID = DEFINER is a ________ rights unit.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. Triggers: An INSTEAD OF trigger (can/cannot) be conditional.
identifiers
cannot
SQLPlus
USING
21. Advantage: PL/SQL programs are stored centrally - making them more ______.
suspended
manageable
buffer
not the same
22. I/O: One of the 3 types of data stored in the DBMS_OUTPUT buffer.
NUMBER
USER_PLSQL_OBJECT_SETTINGS
numeric and cursor
Apache
23. Types: PL/SQL has all the _____ data types.
..
bind arguments
SQL
NDS
24. For an associative array - the FIRST method gets the (lowest / first-created) index.
simple and compound symbols
Double quotes.
lowest
compile
25. To enable result-caching for a function - use the _____________ clause.
RESULT_CACHE
CURSOR - RETURN
reference
invoker's
26. DynSQL: Maximum string length to pass to EXECUTE IMMEDIATE.
anonymous
optional
32 -000
a number := 10
27. Delimiters: Host variable indicator.
...
REUSE SETTINGS
enabled
..
28. Declare a package procedure P with no arguments - and give it definer's rights.
SQL
procedure P AUTHID definer;
VARRAY - Nested table
lock
29. 5 types of events that can have triggers: DML - DDL - INSTEAD OFs - database events - and ________ statements.
searched
Server Pages
suspended
COMMIT - ROLLBACK - SAVEPOINT - SET TRANSACTION
30. I/O: This package has hypertext procedures that generate HTML tags
HTP
EXECUTE
identifiers
=
31. The method to add one or more elements to a nested table or VARRAY is ______.
simple
exception handler
EDITION_NAME
EXTEND
32. Into nested table ex - put elements of tbl1 that are not in tbl2.
currval and nextval
vname CONSTANT VARCHAR2 := 'x';
fetch C into V
ex := tbl1 MULTISET EXCEPT tbl2
33. The three types of compiler warnings.
EVERE - PERFORMANCE - INFORMATIONAL
cannot
function f (n number) return number result_cache relies_on (emps);
before insert or update on emps
34. Bulk: The keywords of a bulk collect FETCH statement.
varray
value
FETCH - BULK COLLECT INTO
%FOUND - %ISOPEN - %NOTFOUND - %ROWCOUNT
35. I/O: The DBMS_OUTPUT buffer will not be flushed until it is full or until the current PL/SQL block _________.
memory
True
finishes
predefined
36. The compiler directive governing conditional compilation.
ex := tbl1 MULTISET EXCEPT tbl2
SQLCODE
$IF
strong
37. Conversion: It is best to use (implicit / explicit) conversion.
dbms_output.put_line
explicit
query
name-value
38. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.
IN
function f (n number) return number result_cache relies_on (emps);
FETCH - BULK COLLECT INTO
hardware
39. I/O: The buffered output of dbms_output.put_line is retrieved by _______.
FETCH - INTO
PLS_INTEGER
1
SQLPlus
40. Declare a cursor c with no parameters or return type.
NUMBER
boolean
SQL
cursor c;
41. Web: The gateway that allows a web browser to invoke a PL/SQL procedure through an HTTP listener.
PL/SQL Gateway
always
cannot
once
42. You can put a label before any executable PL/SQL _________.
bb:true
CURRENT_USER - DEFINER
2
statement
43. Wrapping can be done with the ____ executable.
SQL
wrap
parameter
CHARARR
44. Types: One of the scalar data types specific to PL/SQL: P________
COUNT
null string
$$
PLS_INTEGER
45. The DEFINITION of a cursor is the part after the keyword __.
IS
Reserved words.
CHAR - VARCHAR2
TRUE - FALSE - NULL
46. Native compilation turns bytecode into ________ code.
loop
machine
CREATE TRIGGER
FOR UPDATE
47. Delimiters: The association operator.
BOOLEAN
dbms_output.put_line
exit when cgo%NOTFOUND
=>
48. IDs: What a quoted user-defined identifier is enclosed in.
Wrap
machine code
ROLLBACK
Double quotes.
49. Give the statement to make a program autonomous.
anonymous
..
OTHERS
PRAGMA AUTONOMOUS_TRANSACTION;
50. Types: The storage size of a NUMBER value is based on the number of ______ digits.
colon
invoker's
significant
DBMS_DDL
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests