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. The inquiry directive that gives the current line number in the procedure.
$$PLSQL_LINE
is
unconstrained
PLS_INTEGER
2. The RESULT_CACHE clause has to be in both the declaration and in the ______ of the function.
database
parameter
Web Toolkit
definition
3. Cursors: Which cursor attribute is not meaningful for an implicit cursor?
query
OTHERS
plb
%ISOPEN.
4. Declare a variable r whose type is that of the records in table t.
r t.%ROWTYPE;
CREATE TYPE
CLOSE_CURSOR
decimal
5. Exceptions: If there is no handler for an exception - PL/SQL returns an ________ exception error to the invoker or host environment.
unhandled
disable
explicit
cursor
6. Types: One of the scalar data types specific to PL/SQL: P________
constrained
PUT_LINE
PLS_INTEGER
suspended
7. Triggers: An INSTEAD OF trigger (can/cannot) be conditional.
END IF
IF - CASE or LOOP
cannot
execute
8. I/O: To make sure the DBMS_OUTPUT buffer will be flushed - put a WHEN ______ clause in the EXCEPTION section of your outer block.
END CASE
OTHERS
1
With a letter.
9. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?
PLS_INTEGER
external subprogram
statement
10. By default - OUT and IN OUT parameters are passed by _____.
elsif
increment
CURSOR - RETURN - IS
value
11. Cursors: Give the statement to fetch data from cursor variable CV into MyVar.
r tRec := tRec(9 - 'Jones');
<<
fetch cv into myvar
implicit
12. Characters that begin a multi-line comment.
/*
dense
injection
disable
13. IDs: You can use a reserved word as a _______ user-defined identifier.
.
quoted
not a number
single-line
14. Term for a character literal with zero characters.
SYS_REFCURSOR
SQLPlus
null string
Web Toolkit
15. I/O: Max number of bytes to pass in a call to DBMS_OUTPUT.PUT_LINE.
is
always
quoted
255
16. IDs: The 3 non-alphanumeric characters that can be in an ordinary user-defined identifier.
enclosing
# - $ - _
RETURN
:=
17. DynSQL: In EXECUTE IMMEDIATE - the statement string can use either placeholders - or string ________.
CURRENT_USER
unhandled
STANDARD
concatenation
18. Exceptions: The ________ function returns the current error code.
SQLCODE
CREATE TRIGGER
package
IF - CASE or LOOP
19. A large OUT or IN OUT parameter will waste a lot of space and CPU if it is passed by _____.
EXIT WHEN
CHAR - VARCHAR2
value
SUBTYPE numb IS number;
20. _____ arrays cannot be used as the type of an Oracle table column.
nested tables - associative arrays
Abstract
associative
will not
21. DynSQL: The clause that supplies bind arguments to EXECUTE IMMEDIATE.
single-line
BOOLEAN
USING
must
22. Loops: What is the index range operator in a FOR loop?
selection
WHEN OTHERS THEN
..
23. (from inside a package) Declare a function f - that takes a number n - returns a number - and caches results - depending on table EMPS.
database
HTP
function f (n number) return number result_cache relies_on (emps);
1
24. Where an external subprogram is stored.
definer's
in the database
does not
ALTER SESSION
25. Bulk: The two features that comprise Bulk SQL are:
constrained
FORALL and BULK COLLECT
subtype
@
26. With static typing - type checking is done at ______ time.
DBMS_SESSION
compile
constructor
an enclosing block
27. Declare an unconstrained subtype of NUMBER called NUMB.
v2 IN NUMBER default 20
SUBTYPE numb IS number;
cannot
array
28. Declare an associative array type - t - whose elements are of type rPerson - and whose index is PLS_INTEGER.
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
statement
EXIT WHEN
ROLLBACK
29. Nested tables are multisets - meaning that there is no inherent _____ of their elements.
injection
name
order
invoker's
30. Abbreviation for Abstract Data Type.
subtype
:=
a cursor
ADT
31. IDs: The two types of words that can - but should not - be used as user-defined identifiers.
strong
3
Keywords and predefined names.
Reserved words.
32. The values defined in PLSQL_CCFLAGS can be referenced as _____ directives.
DBMS_SESSION.RESET_PACKAGE
WHEN OTHERS THEN
inquiry
COMMIT - ROLLBACK - SAVEPOINT - SET TRANSACTION
33. The NOCOPY option on an OUT or IN OUT parameter - causes it to be passed by ______.
cannot
reference
REF CURSOR
255
34. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.
CLOSE
4
SQL cursor
machine code
35. A nested table has to be initialized using a ________ - named the same as the type.
pseudocolumn
a number := 10
UTL_FILE
constructor
36. The Wrap utility (does / does not) encrypt source code.
DATE
REF CURSOR
does not
order
37. A CASE expression ends with _____.
SYS_REFCURSOR
END
<<
name and datatype
38. Fundamental: Character used to escape a single quote inside a literal.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. A PL/SQL extension to the WHERE clause of the SQL statements UPDATE and DELETE
name and datatype
WHERE CURRENT OF
numeric and cursor
multi-row
40. In the IF syntax - is if ENDIF or END IF?
searched
END IF
cannot
implicit cursor
41. Fundamental: What are the 3 compound symbols for 'not equal to'?
savepoint ab
<> - != - ^=
literal
2
42. The _______ package lets you wrap dynamically generated PL/SQL.
DBMS_DDL
NDS
integrated
$IF $THEN $ELSE $END
43. Define a nested table type - tN - which is a table NUMBERs.
package
fetch C into V
TYPE tN IS TABLE of NUMBER
44. Cursors: The index variable in a cursor FOR loop (does/does not) need to be declared.
USING
=
does not
'
45. Triggers: The clause to make a trigger run before inserting or updating table EMPS.
TYPE t IS TABLE OF rPerson INDEX BY PLS_INTEGER;
before insert or update on emps
Gateway
variable
46. In a collection - the internal components always have the _____ data type.
'ENABLE:SEVERE' - 'ERROR:06002'
32 -000
same
DML
47. A type of compiler directive - begins with 'e'.
error
REF_CURSOR
$END
EXIT WHEN cv%NOTFOUND
48. DynSQL: The main command for Native Dynamic SQL.
4
name-value
EXECUTE IMMEDIATE
transaction
49. The method to add one or more elements to a nested table or VARRAY is ______.
selection
EXTEND
CREATE TRIGGER
native dynamic
50. Default file extension of wrap's input file.
DATE
literals
sql
cannot
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