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. A large OUT or IN OUT parameter will waste a lot of space and CPU if it is passed by _____.
4
not the same
session cursor
value
2. Web: mod_plsql is an implementation of the PL/SQL _________.
subtype
Gateway
PLS_INTEGER
sql
3. This is a CASE (expression / statement): myvar := CASE num WHEN 1 THEN 'good' WHEN 2 THEN 'bad' END;
INSTEAD OF
FORALL i IN MyList.FIRST..MyList.LAST
expression
DATE '2005-12-25'
4. Types: The only Oracle datetime type that doesn't begin with TIMESTAMP is ________.
DATE
True
CASE_NOT_FOUND
preprocessor
5. Types of blocks: A pl/sql block that is not stored in the database.
quoted
disable
anonymous
Web Toolkit
6. A record is a group of related data items stored in fields - each with its own...
CURRENT_USER
DBMS_SESSION
name and datatype
v1 OUT number default 10
7. I/O: One of the 3 types of data that can be passed to the DBMS_OUTPUT buffer.
virtual machine
anonymous block
composite
VARCHAR2
8. Fundamental: One of the 4 types of lexical units: d_____
delimiters
dbms_output.put_line
ordinary
Double quotes.
9. A unit with AUTHID = CURRENT_USER is an ________ rights unit.
10. An $ERROR directive ends with _____.
cannot
EDITION_NAME
$END
anonymous
11. Triggers: In a DML trigger - the phrase that makes the trigger run for every affected record.
END CASE
raise_application_error(-20 -100 - 'Bad');
CURRENT OF
for each row
12. Exceptions: The ________ handler must always be the last handler.
Ada
-
invoker's
OTHERS
13. A national character literal is composed of characters in the ________ character set.
Wrap
national
transaction
buffer
14. With dynamic typing - type checking is done at ______time.
will not
Apache
DBMS_PIPE
run
15. The BETWEEN operator is (inclusive / exclusive).
inclusive
EXIT WHEN
integer
16. A (simple / searched) CASE statement begins with CASE <expression>.
simple
execute
32 -000
NESTED TABLE myColl STORE AS myCollTab
17. The EXTEND method is not used with ______ _______.
4K
optional
procedure - function
associative arrays
18. Command used to execute dynamic SQL.
not the same
EXECUTE IMMEDIATE
IN
collections - records
19. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.
inclusive
CHAR - VARCHAR2
upper - coalesce
is certain
20. Cursors: The SQL%FOUND attribute has how many possible values?
WHEN
once
3
CLOSE_CURSOR
21. I/O: If the current (outermost) PL/SQL block ends with an unhandled exception - the output buffer will not be ___________.
flushed
Ada
cursor number
selection
22. IDs: The type of words that cannot be user-defined identifiers.
Reserved words.
can
END
finishes
23. Exceptions: Some internal exceptions have ________ names.
predefined
$$
associative
propagates
24. A type of compiler directive - begins with 's'.
pseudocolumn
binding
selection
HTF
25. Cursors: You give an explicit cursor a name and associate it with a _______.
explicit
disable
Double quotes.
query
26. A GOTO statement cannot branch from an exception handler back into the...
cursor
procedure P AUTHID current_user;
current BEGIN-END block
network
27. Data dictionary view giving the AUTHID values on a user's objects.
aliases
USER_PROCEDURES
SQLERRM
DBMS_SESSION.RESET_PACKAGE
28. Bulk: The implicit cursor attribute that gives the number of rows affected by each DML statement in a FORALL statement.
%BULK_ROWCOUNT
VARRAYs
bytecode
comments
29. Cursors: If no SELECT or DML statement has run - the value of SQL%ROWCOUNT is what?
GET_LINES
scalar
selection
30. The _______ package lets you wrap dynamically generated PL/SQL.
identifiers
E Exception;
definer's
DBMS_DDL
31. Exceptions: An unhandled exception ________ to the enclosing block.
savepoint ab
CURSOR - RETURN
propagates
calls
32. In short-circuit evaluation - IF-conditions are only evaluated up to where the outcome ___________.
is certain
IF - CASE or LOOP
EXIT WHEN
once
33. Cursors: The SQL%BULK_ROWCOUNT attribute is an _________ -
literal
array
single-line
DBMS_PREPROCESSOR
34. Cursors: How many DML statements can a FORALL statement contain?
fetch cv into myvar
DBMS_DDL
FOR UPDATE
1
35. Cursors: The type definition of a WEAK ref cursor type has no _______ clause.
TYPE tN IS TABLE of NUMBER
exception handler
RETURN
v3 IN OUT NUMBER
36. Give the first line of the FOR loop with index i going from 1 to 10 in reverse.
FOR i IN REVERSE 1..10 LOOP
1
4K
$IF $THEN $ELSE $END
37. Cursors: A cursor with a name is an _________ cursor.
cursor
context
explicit
name-value
38. Cursors: WHERE _______ ______ makes an UPDATE or DELETE apply to the current row of a cursor.
suspended
a cursor
decimal
CURRENT OF
39. You (can / cannot) wrap trigger source code.
cannot
memory
STANDARD
statement
40. To exit an active autonomous transaction without causing an exception - you must issue _____ or ______.
CURSOR - RETURN - IS
order
commit - rollback
32 -000
41. In Native Mode - PL/SQL code is compiled into ______ ______.
NDS
PUT
machine code
32 -000
42. Advantage: PL/SQL programs are stored centrally - making them more ______.
Declaration
INTO
plb
manageable
43. Exceptions: The maximum length of an Oracle error message is ____ characters
constrained
pseudocolumn
lower sub-block
512
44. Native compilation turns bytecode into ________ code.
EXECUTE IMMEDIATE
machine
FORALL i IN MyList.FIRST..MyList.LAST
iname
45. Kind of code created by the PL/SQL compiler.
open C(p)
bytecode
Reserved words.
EXIT WHEN cv%NOTFOUND
46. The EXCEPTION section is (optional/mandatory).
optional
r t.%ROWTYPE;
SQLERRM
DML
47. Cursors: The second keyword of a FETCH statement.
integer
INTO
selection
*/
48. %ROWTYPE gets the type of a table or _______.
vname CONSTANT VARCHAR2 := 'x';
cursor c;
cursor
'
49. Triggers: The code in a trigger is actually an ________ block.
L.V
anonymous
REUSE SETTINGS
IS
50. The SET TRANSACTION statement affects only the ____________.
GET_LINES
RECORDS
current transaction
PUT