0% found this document useful (0 votes)
148 views2 pages

PLSQLQ

The document contains 8 multiple choice questions regarding PL/SQL. It tests knowledge of PL/SQL syntax rules including data types, exceptions, triggers and error handling. It provides the question, possible answers and the correct answer for each question. The questions cover topics such as data type matching in SELECT statements, the behavior of NULL values, the sections of a PL/SQL block including exceptions and error handling, and valid trigger types.

Uploaded by

svkrishna49
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views2 pages

PLSQLQ

The document contains 8 multiple choice questions regarding PL/SQL. It tests knowledge of PL/SQL syntax rules including data types, exceptions, triggers and error handling. It provides the question, possible answers and the correct answer for each question. The questions cover topics such as data type matching in SELECT statements, the behavior of NULL values, the sections of a PL/SQL block including exceptions and error handling, and valid trigger types.

Uploaded by

svkrishna49
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. In this PL/SQL statement, which of the following lines will produce an error?

A)
B)
C)
D)
E)
F)

cursor CAPITALS is
select CITY, STATE
into my_city, my_state
from CITIES
where CAPITAL = 'Y';
There are no errors in these statements

ANS: c
2. In a PL/SQL block, a variable is declared as NUMBER without an initial value.
What will its value be when it is used in the executable section of the PL/SQL
block?
A) NULL
B) 0
C) Results in a compilation error
D) An exception will be raised
ANS : a
3. PL/SQL raises an exception, in which TWO of the following cases:
A)
B)
C)
D)

When
When
When
When

a SELECT statement returns no rows


a SELECT statement returns more than one row
the datatypes of SELECT clause and INTO clause do not match
INTO statement is missing in the SELECT statement

ANS: ab
4. What is the result if two NULL values are compared to each other?
A) TRUE
B) FALSE
C) Undefined
D) NULL
ANS:b
5. Functions for error trapping are contained in which section of a PL/SQL block
?
A) Header
B) Declarative
C) Executable
D) Exception
ANS : D
6. Which section of a PL/SQL block would most likely contain a RAISE statement?
A) Header
B) Declarative
C) Executable
D) Exception
ANS : D
7. Select the VALID trigger type(s)?
A) AFTER statement trigger
B) INSERT row trigger
C) DELETE row trigger
D) UPDATE row trigger
E) All of the above
F) None of the above
ANS: A
8. In this PL/SQL statement, which of the following lines will produce an error?

A) CREATE OR REPLACE TRIGGER check_age


B) BEFORE INSERT OR UPDATE ON employee FOR EACH ROW
C) IS
D) years_old NUMBER;
E) BEGIN
F) null; END;
ANS: C
Hi Kiran,
I wish you all the best in the coming test. I would like to tell you
that there would be some
25 to 30 questions in all and an allotted time of 45 minutes. This is
how the pattern was in
Bangalore. All the questions will be pertaining to SQL/PLSQL and would
not be too hard.
Think that I was able to clear the test, so it would not be difficult
for you to do so. Since I
recommended you the interview would be either tougher than it should be
or easier than normal
but what ever have the confidence in you and you will surely come
through. I wish you are my
colleague soon.

You might also like