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. Delimiters: Host variable indicator.
...
$IF $THEN $ELSE $END
procedure P AUTHID definer;
DBMS_DDL
2. Cursors: The second keyword of a FETCH statement.
procedure P AUTHID definer;
EVERE - PERFORMANCE - INFORMATIONAL
exception
INTO
3. Triggers: An INSTEAD OF trigger (can/cannot) be conditional.
4K
DATE '2005-12-25'
v1 OUT number default 10
cannot
4. The compiler directive governing conditional compilation.
$IF
dynamic
compilation
cursor c;
5. TCL: Create a savepoint called ab
savepoint ab
@
is certain
definer's
6. I/O: This DBMS_OUTPUT proc retrieves multiple lines from the buffer.
;
DATE
GET_LINES
True
7. A CASE statement (can / cannot) execute more than one group of statements.
cannot
3
WHERE CURRENT OF
upper - coalesce
8. ______ SQL is a PL/SQL feature that allows SQL syntax directly in a PL/SQL statement.
composite
DBMS_PREPROCESSOR
static
compiles
9. This is a CASE (expression / statement): myvar := CASE num WHEN 1 THEN 'good' WHEN 2 THEN 'bad' END;
expression
VARRAYs
EXCEPTION_INIT
COMMIT - ROLLBACK - SAVEPOINT - SET TRANSACTION
10. You can have many autonomous transactions in ___________.
simple
buffer
cursor
an autonomous routine
11. _______ arrays can be sparse or dense - depending on how you fill them.
associative
parameter
FETCH - INTO
EXCEPTION_INIT
12. Labels for blocks and statements are enclosed in '__' brackets.
ALTER SESSION
<<>>
Keywords and predefined names.
r t.%ROWTYPE;
13. IDs: Maximum number of bytes in a user-defined identifier.
4K
30
explicit
WHEN
14. The _______ package lets you wrap dynamically generated PL/SQL.
name-value
DBMS_DDL
mandatory
close C
15. 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
16. Advantage: Performance: Stored subprograms are ______ in memory.
cached
RAISE
Keywords and predefined names.
TYPE tN IS TABLE of NUMBER
17. Types: In addition to the SQL data types - PL/SQL has ___ more scalar data types.
E Exception;
4
an autonomous routine
wrap
18. I/O: dbms_output.put_line puts output into a _______.
buffer
close C
unconstrained
NESTED TABLE myColl STORE AS myCollTab
19. Declare an unconstrained subtype of NUMBER called NUMB.
close C
SUBTYPE numb IS number;
sequence pseudo-columns
finishes
20. Cursors: Opening keyword of a cursor FETCH loop.
oname
CHARARR
SQL
LOOP
21. A user-defined TYPE can have...
FOR UPDATE
an AUTHID property
flushed
USING
22. Conversion: It is best to use (implicit / explicit) conversion.
CURSOR - RETURN - IS
bind
fail
explicit
23. DynSQL: The colon-prefixed names used in EXECUTE IMMEDIATE are called ________.
INTO
v1 OUT number default 10
# - $ - _
placeholders
24. Collections are one of the two kinds of PL/SQL _______ data types.
32 -000
integer
composite
ROLLBACK
25. The attribute used to get the type of a row without knowing what it is.
%ROWTYPE
do not
:=
cursor number
26. With an sparse - integer-indexed associative array - you (can / cannot) use a regular FOR loop.
FORALL and BULK COLLECT
strong
cannot
follows
27. Exceptions: When an exception is raised inside a cursor FOR loop - the cursor is _______ implicitly.
SQL
UTL_FILE
an enclosing block
closed
28. With a result-cached function - it uses a cached value when the function is called again with the...
selection
API
INSTEAD OF
same arguments
29. I/O: This package handles HTTP.
machine code
unconstrained
fetch C into V
UTL_HTTP
30. Static typing is also called _____ typing.
strong
increment
TRUE - FALSE - NULL
dense
31. Web: mod_plsql is an implementation of the PL/SQL _________.
Gateway
CASE_NOT_FOUND
definer's
ex := tbl1 MULTISET EXCEPT tbl2
32. The DEFINITION of a cursor is the part after the keyword __.
IS
255
non-editioning views
enclosing
33. IDs: You (can/cannot) use keywords as ordinary user-defined identifiers.
definer's
can
exception handler
user-defined
34. The inquiry directive that gives the current line number in the procedure.
VARRAY - Nested table
CURSOR - RETURN
'
$$PLSQL_LINE
35. An ordinary character literal is composed of characters in the ________ character set.
DATE
2
database
Reserved words.
36. Bulk: The keywords of a bulk collect FETCH statement.
FETCH - BULK COLLECT INTO
procedure P AUTHID definer;
EXIT
statement
37. Cursors: The value of SQL%ROWCOUNT after a SELECT INTO statement returns more than one row.
'
..
1
CLOSE_CURSOR
38. DynSQL: The main command for Native Dynamic SQL.
national
FORALL i IN MyList.FIRST..MyList.LAST
True
EXECUTE IMMEDIATE
39. I/O: The DBMS_OUTPUT procedure that sets the size of the output buffer.
executable
ENABLE
close C
variable
40. Cursors: You can just declare a cursor at first - then _______ it later.
network
define
IF - CASE or LOOP
Gateway
41. Cursors: Give the statement to open cursor C.
compile
bb:true
open C
column
42. When a parameter is passed by reference - changes made to it inside the procedure cannot be undone. True/False.
True
associative arrays
4K
3
43. I/O: Max number of bytes DBMS_OUTPUT can handle in a session.
EXIT
1 million
DML
RETURN
44. Triggers: A compound trigger can fire at more than one ______ point.
'
DEFINER
v3 IN OUT NUMBER
timing
45. Which two of these built-in SQL functions can be used in procedural (PL/SQL) statements: DECODE - CORR - UPPER - SUM - COALESCE - DEREF.
upper - coalesce
DATE
national
will not
46. An INSTEAD OF trigger is used - e.g - when you want to insert into a complex _____.
32 -000
value
integer
view
47. Triggers: Programmers (as opposed to DBAs) mostly make use of _____ triggers.
RESULT_CACHE
DML
unhandled
END
48. How to reference a variable V declared in a block labelled L: ____.
constrained
is certain
exception handler
L.V
49. Cursors: A cursor FOR loop can use an explicit or an _______ cursor.
implicit
associative
versions
alter procedure
50. The compiler directive used to select which code to compile.
$IF
composite
anonymous block
..