Professional Documents
Culture Documents
False
performance transaction processing language.
9) What is the maximum number of ELSE
a. True b. False clauses that can be included in an IF clause that
is not nested?
2) PL/SQL stored procedures move application
code from the server to the client. a. 1 b. 0 c. 15 d. Any number
a. INTEGER,INT,SMALLINT a. Yes b. No
b. DOUBLE PRECISION,FLOAT
c. DEC,DECIMAL,NUMERIC 15) Dynamic SQL enables you to build SQL
d. None of the above statements dynamically at runtime.
a. Predefined Exception
19) Which of the following provides a way for b. Internal Exception
your program to select multiple rows of data c. User defined Exception
from the database and then process each row d. None of the above
individually.
3) WRAP command is used to encrypt a
a. PL/SQL Cursors b. PL/SQL Trigger PL/SQL application.
c. PL/SQL Select d. PL/SQL Process
a. True b. False
20) Abbreviate SMTP?
4) Which Package lets you use database triggers
a. Single Mail Transaction Protocol
to alert an application when specific database
b. Simple Mail Transfer Protocol
values change?
c. Simple Mail Transaction Protocol
d. Simple Mail Transfer Package a. DBMS_OUTPUT b. DBMS_ALERT
c. DBMS_PIPE d. All mentioned above
21) Packages HTF and HTP allow your PL/SQL
programs to generate HTML tags. 5) PL/SQL packages are schema objects that
group logically related PL/SQL types, variables
a. True b. False and subprograms.
22) PL/SQL Exception message consists of - a. True b. False
a. Type of Exception b. An Error Code 6) Which statement lets you create standalone
c. A message d. All mentioned above functions that are stored in an Oracle database?
23) The keyword All is a shorthand way to refer a. SQL CREATE PROCEDURE
to all warning messages. b. SQL CREATE FUNCTION
c. Both A & B
a. Yes b. No d. None of the above
24) The subprogram is called through a
database link or as an external procedure. 7) Which parameter acts like a constant inside
the subprogram?
a. True b. False
a. IN b. OUT within an IF clause?
c. Both A & B d. None of the above
a. 1 b. 0 c. 15 d. Any number
8) Which of the following is used to define code 16) In PL/SQL, a warning or error condition is
that is executed / fired when certain actions or called an exception.
event occur?
a. True b. False
a. Replace b. Keyword c. Trigger d. Cursor
9) Which Operator Returns TRUE if a subquery 17) Which datatypes can be used with a
returns at least one row? RECORD Type?
14) Arrays in other languages become varrays in 22) Pragmas are processed at ___________ .
PL/SQL.
a. Run time b. Compile time
a. True b. False c. Both A & B d. None of the above
15) How many nested IF clauses can be included 23) Which statement chooses from a sequence of
conditions, and executes a corresponding
statement? 6) LOB locators are values, which specify the
location of the large object.
a. CASE Statement b. CLOSE Statement
c. COMMIT Statement d. None of the above a. True b. False
24) Constructors are functions that return a new 7) Which statements execute a sequence of
object as its value. statements multiple times?
a. index b. indicator_name
21) When creating a function, in which section
c. field_name d. host_variable_name
will you typically find a return key word?
3) Which statements execute a sequence of d. None of the above
statements multiple times?
10) Which collection method Returns the index
a. LOOP statement b. NULL statement number that precedes index n in a collection?
c. MERGE statement d. None of the above
a. PRIOR(n) b. LAST c. LIMIT d. COUNT
4) Which methods implement some internal
logic for comparing two objects? For example, a 11) Subprograms let you extend the PL/SQL
rectangle is bigger than another rectangle if both language. Which subprogram acts like new
its sides are bigger. expressions and operators?
5) The comparison methods are used for 12) In which parameter mode Formal
comparing objects. How many ways are available parameter acts like an initialized variable?
for comparing objects?
a. IN b. OUT
a. 4 b. 1 c. 2 d. 5 c. IN OUT d. None of the above
a. Operands b. Operators
20) Associative arrays also known as index-by
c. Both A & B d. None of the above
tables.
28) Which of the following are used for
a. True b. False
displaying output on a web page?
21) Which type of cursor is automatically
a. HTF b. HTP
declared by Oracle every time an SQL statement
c. Both A & B d. None of the above
is executed?
29) Like all identifiers, the names of constants,
a. An Implicit b. An Explicit
variables, and parameters are case sensitive.
c. Both A & B d. None of the above
a. True b. False
22) An Explicit cursor is defined by the program
for any query that returns more than one row of 30) Cursor attributes are not affected by
data. autonomous transactions.
a. True b. False a. True b. False
23) To handle raised exceptions, you write 1) Which of the following is used to declare a
record? a. Error reporting,Character, Datatype
conversion
a. %ROWTYPE b. %TYPE b. Number,Date,Object reference
c. Both A & B d. None of the above c. Miscellaneous
d. All mentioned above
2) Which of the following has a return type in its
specification and must return a value specified in 8) A searched CASE expression lets you test
that type? different conditions instead of comparing a single
expression to various values.
a. Function b. Procedure
c. Package d. None of the above a. Yes b. No
3) PL/SQL is completely portable, high- 9) PL/SQL Server Pages (PSPs) enable you to
performance transaction processing language develop Web pages with dynamic content.
that offers which of the following advantages -
a. True b. False
a. Tight Integration with SQL
b. Better Performance 10) Using DBMS_DB_VERSION Package
c. Higher Productivity,Full Portability,Tight Constants which represents the condition that the
Security database version is less than or equal to 10; it is
d. All mentioned above TRUE.
16) Which is a database object that groups 22) LOB parameters are not permitted in a
logically related PL/SQL types, objects and server-to-server RPC.
subprograms?
a. Yes b. No
a. Package b. Module c. Body d. Name
23) The CLOSE statement enables a cursor
17) Only EXISTS can be applied to variable and makes the associated result set
automatically null collections. If you apply undefined.
another method to such collections, PL/SQL
raises COLLECTION_IS_NULL. a. True b. False
a. Yes b. No
a. True b. False
a. True b. False