Professional Documents
Culture Documents
TechInterviews Search
Prepare for job interviews with the questions and answers asked by high-tech employers
.NET C++ Database General Hardware Jav a Networking Puzzles SAP ABAP Testing Unix/Linux VB Web dev Windows
converted by Web2PDFConvert.com
9. Read the following code: Ink cartridges
CREATE OR REPLACE PROCEDURE find_cpt Laptop computers
(v_movie_id {Argument Mode} NUMBER, v_cost_per_ticket {argument mode} NUMBER) Affordable life insurance
IS Ink cartridges
BEGIN
IF v_cost_per_ticket > 8.5 THEN
SELECT cost_per_ticket Tutorials
INTO v_cost_per_ticket AJAX Tutorials
FROM gross_receipt Dealing with y our job
WHERE movie_id = v_movie_id; Getting a job
END IF; JavaScript tutorials
END; Job interview tips from Yahoo! HotJobs
My SQL tutorials
Which mode should be used for V_COST_PER_TICKET? Retiring from y our job
Ruby on Rails tutorials
A. IN Salary guide for IT jobs
B. OUT Self-employ ment
C. RETURN TechInterviews guides in PDF
D. IN OUT Understanding pointers
10. Read the following code: XML Tutorials
CREATE OR REPLACE TRIGGER update_show_gross XUL tutorials
{trigger information}
BEGIN
{additional code} RSS Feeds
END; All posts
All comments
The trigger code should only execute when the column, COST_PER_TICKET, is greater
than $3. Which trigger information will you add?
B. Statement only
C. Row only
D. Oracle Forms trigger
13. Read the following code:
CREATE OR REPLACE FUNCTION get_budget(v_studio_id IN NUMBER)
RETURN number IS
v_yearly_budget NUMBER;
BEGIN
SELECT yearly_budget
INTO v_yearly_budget
FROM studio
WHERE id = v_studio_id;
RETURN v_yearly_budget;
END;
converted by Web2PDFConvert.com
CREATE OR REPLACE PROCEDURE update_theater
(v_name IN VARCHAR v_theater_id IN NUMBER) IS
BEGIN
UPDATE theater
SET name = v_name
WHERE id = v_theater_id;
END update_theater;
A. An user defined exception must be declared and associated with the error code
and handled in the EXCEPTION section.
B. Handle the error in EXCEPTION section by referencing the error code directly .
C. Handle the error in the EXCEPTION section by referencing the UNIQUE_ERROR
predefined exception.
D. Check for success by checking the value of SQL%FOUND immediately after the
UPDATE statement.
15. Read the following code:
CREATE OR REPLACE PROCEDURE calculate_budget IS
v_budget studio.yearly_budget%TYPE;
BEGIN
v_budget := get_budget(11);
IF v_budget < 30000
THEN
set_budget(11,30000000);
END IF;
END;
B. SQLERRM
C. RAISE_APPLICATION_ERROR
D. RAISE_SERVER_ERROR
17. The CHECK_THEATER trigger of the THEATER table has been disabled.
Which command can you issue to enable this trigger?
A. ALTER TRIGGER check_theater ENABLE;
This trigger must fire before each DELETE of the GROSS_RECEIPT table. It
should fire only once for the entire DELETE statement. What additional
information must you add?
converted by Web2PDFConvert.com
BEGIN
UPDATE studio
SET yearly_budget = v_new_budget
WHERE id = v_studio_id;
IF SQL%FOUND THEN
RETURN TRUEl;
ELSE
RETURN FALSE;
END IF;
COMMIT;
END;
B. DBMS_OUTPUT
C. DBMS_LIST
D. DBMS_DESCRIBE
23. What occurs if a procedure or function terminates with failure without being
handled?
A. Any DML statements issued by the construct are still pending and can be
committed or rolled back.
converted by Web2PDFConvert.com
B. DBMS_DML
C. DBMS_SYN
D. DBMS_SQL
This entry was posted in Database. Bookmark the permalink. Post a comment or leav e a
trackback: Trackback URL.
Ads by Google
5 0C O M M E N T S O N P L / S Q L I N T E R V I E W Q I U E S T I O N S
Sudhir
Posted 5/14/2004 at 10:49 am | Permalink
1.1
2.2
3.1
4.(1,3,4)
5.2
6.3
7.4
8.2
9.2
10.(3,4)
11.1
12.4
13.1
14.1
15.3
16.3
17.1
18.(1,4)
19.4
20.3
21.4
22.2
23.4
24.3
25.4
please let me know how many answers are right. in this pl/sql test.
Unnamed
Posted 9/20/2004 at 6:27 am | Permalink
Answer to question-2 is 4
converted by Web2PDFConvert.com
dcz
Posted 9/25/2004 at 2:52 am | Permalink
24 IS 4
Stephen Jacob
Posted 9/27/2004 at 9:30 pm | Permalink
Stephen Jacob
Posted 9/27/2004 at 9:37 pm | Permalink
Ahamed Tharik.N
Posted 10/18/2004 at 2:32 am | Permalink
Ahamed Tharik.N
Posted 10/18/2004 at 2:51 am | Permalink
Question 13 all the four answers are wrong , the function executed like this
GET_BUDGET(11)
————–
Francisco J. Banda
Posted 10/25/2004 at 3:20 pm | Permalink
Francisco J. Banda
Posted 10/25/2004 at 3:39 pm | Permalink
Francisco J. Banda
Posted 10/25/2004 at 3:44 pm | Permalink
converted by Web2PDFConvert.com
Forms).
Francisco J. Banda
Posted 10/25/2004 at 3:54 pm | Permalink
Hi Ahamed Tharik.N y our answer is correct, but also answer number 2 works
to be able to see the result uses SQL>print g_y early _budget.
Pranav Vora
Posted 6/14/2005 at 1:25 am | Permalink
I fully agree with Francisco J. Banda. For Francisco, y our answers are right,
just match question numbers.
I tried to do and here is the revised answer list. (T means correct answer choice)
1.)1 : T
2.)2 - 4 : 4 - T
3.)1 : T
4.)(1,3,4) - T
5.)2 - 4 : 4 - T
6.)3 - T
7.)4 - T
8.)2 - 3 - 3 : 3 - T
9.)2 - 4 : 4 - T
10.)(3,4) - 1
11.)1 - [I dont know correct answer]
12.)4 - 3 : 3 - T
13.)1 - ? : 2 - T
Thanks.
Arti Shah
Posted 9/29/2005 at 7:33 am | Permalink
1.1
2.4
3.2
4.1,3,5
5.2
6.2,3
7.1
8.3
9.4
10.4
11.4
12.1
13.2
14.4
15.3
16.2
17.2
18.1
19.4
20.3
21.4
22.2
23.4
24.4
25.4
vijay
Posted 12/15/2005 at 7:04 am | Permalink
converted by Web2PDFConvert.com
The answer to the 23 is 4
vijay
Posted 12/15/2005 at 7:06 am | Permalink
answer for 22 is 2
oraguru
Posted 12/15/2005 at 7:11 am | Permalink
answer for 18 is 1
cobra
Posted 3/29/2006 at 12:51 am | Permalink
Right answer to QUS.5 is 4th option coz if end loop is missed in programming it
wud through error while compiling , but if u missed EXIT , the program wud
not know where to exit the loop …and loop wud go on
aa
Posted 6/13/2006 at 3:46 pm | Permalink
1. 1
2. 4
3. 1
4. 1,3,4
5. 2
6. 2,3
7. 4
8. 3
9. 4
10. 1
11. 2
12. 3
13. 2
14.4
15. 3
16. 3
17.2
18. 1
19. 3
20.3
21. 4
22. 2
Pr@shant
Posted 8/17/2006 at 5:48 pm | Permalink
converted by Web2PDFConvert.com
14.2 (In When Others clause of Exception Handler, we can trap the SQLCODE
and display user friendly message.)
15.3
16.3
17.1
18.1
19.4
20.1 (Both the package spec and the package body must be compiled only when
the global function definition changes)
21.2
22.2
23.4
24.4
25.4
Goodluck!!
Gab O'layomi
Posted 11/1/2006 at 10:29 am | Permalink
1. 1
2. 4
3. 1
4. (1,3,5)
5. 4
6. 3
7. 4
8. 3
9. 4
10. 1
11. 1
12. 3
13. 2
14. 1 (I’m sure this is correct but may be 4 can also)
15. 3
16. 3
17. 1
18. 1
19. 4
20. 3
converted by Web2PDFConvert.com
21. 4
22. 2
23. 4
24. 4
25. 4
praveen
Posted 11/18/2006 at 10:00 am | Permalink
can somebody explain 20th question:i feel that all the 4 answers are correct
and for 21st question i feel that 2 and 3 are correct answers.Please support y our
ans by some examples,so that it can be understood by one and all.Thanks in
advance.
sachin Gondale
Posted 12/4/2006 at 5:29 am | Permalink
1 -1
2 -4
3 -1
4 - 1,3,4
5 -4
6 -3
7 -4
8 -3
9 -4
10 - 1
11 - 1
12 - 3
13 - 2
14 - 1
15 - 3
16 - 3
17 - 1
18 - 1
19 - 4
20 - 1
21 - 2
22 - 2
23 - 4
24 - 4
25 - 4
Prashant Sinha
Posted 1/17/2007 at 5:25 am | Permalink
1.1
2.4
3.1
4.1,3,4
5.1
6.3
7.4
8.3
9.4
10.1
11.2
12.3
13.4
16.3
17.1
18.1
converted by Web2PDFConvert.com
Potkin Nemat
Posted 1/25/2007 at 12:41 pm | Permalink
I get:
1) 1,2 [2 must be true - any thing should be handled with great care :)]
2)1,2
3)1
4)1,3,4
5)4
6)3
7)4
8)3
9)1
10)4
11)1
12)3
13)4
14)1
15)3
16)3
17)1
18)1
19)4
20)1,2
21)4
22)2
23)4
24)4
25)4
GK
Posted 1/26/2007 at 9:57 am | Permalink
Why do most people feel that y ou need to delcare a record ty pe for a cursor for
loop as in q 2? I have NEVER created a record ty pe for a cursor for loop. I think
such a basic question not being answered correctly is strange.
Good job Potkin Namat, y ou’re the million dollar winner because y ou didn’t
listen to the masses.
Avneesh
Posted 1/28/2007 at 6:22 am | Permalink
1 -1
2- 1
3- 1
4- 1,3,4
5- 4
6- 3
7- 4
8- 3
9- 2
10- 4
11- 1
12- 3
13- 2
14- 1
15- 3
16- 3
17- 1
18- 1
19- 4
20- 1
21- 2
22- 2
23- 4
converted by Web2PDFConvert.com
23- 4
24- 4
25- 4
NAGURTILAK
Posted 3/15/2007 at 1:24 pm | Permalink
1)3
2)4
3)1
4)1,3,4
5)2
6)3
7)4
8)3
9)4
10)2
11)1
12)3
13)2
14)1
15)4
16)3
17)1
18)1
19)4
20)2
21)2
22)2
23)4
24)4
25)4
THIS IS TILAK OK
sdp
Posted 4/9/2007 at 1:12 am | Permalink
Diva
Posted 4/17/2007 at 8:11 am | Permalink
My Answers are:-
converted by Web2PDFConvert.com
1.1,2
3.1
4.1,3,4
5.4
6.3
7.4
8.3
9.4
10.1
11.1
12.3
13.2
15.3
16.3
17.3
18.1
19.4
21.2
22.2
23.4
25.4
skk
Posted 4/18/2007 at 6:40 am | Permalink
Devi
Posted 5/15/2007 at 1:48 am | Permalink
1-1
2- 1
3- 1
4- 1
5- 4
6- 3
7- 4
8- 3
9- 2
10- 4
11- 1
12- 3
13- 2
14- 1
15- 3
16- 3
converted by Web2PDFConvert.com
17- 1
18- 1
19- 4
20- 1
21- 2
22- 2
23- 4
24- 4
25- 4
Aravinda
Posted 6/12/2007 at 3:53 am | Permalink
Hi guy s,
I gave this test, and would like to know how much I score. Ofcourse, every one
has posted what they think are the “right” answers…but, do we have some
expert here, who can be nice enough to compile a list of the correct answers to
all questions?! Here are my answers, I am not sy aing they right, so kindly DO
NOT use to check. I only want to know my score.
Thanks in advance!
Arvinda.
1-1
2-4
3-1
4-1,2,3
5-4
6-3
7-4
8-3
9-4
10-2
11-1
12-3
13-4
14-1
15-3
16-3
17-1
18-1
19-4
20-2
21-2
22-2
23-4
24-4
25-4
johnny
Posted 6/12/2007 at 8:08 am | Permalink
1.1
2.1
3.1
4.1,3,4
5.4
6.3
7.4
8.3
9.4
10.1
11.1
12.3
13.2
converted by Web2PDFConvert.com
14.1
15.3
16.3
17.1
18.1
19.4
20.1
21.2
22.2
23.4
24.4
25.4
samarendra mishra
Posted 7/6/2007 at 5:29 am | Permalink
1-1
2- 4
3- 1
4- 1,3,4
5- 4
6- 3
7- 4
8- 3
9- 4
10- 1
11- 1
12- 3
13- 2
14- 1
15- 3
16- 3
17- 1
18- 1
19- 4
20- 2
21- 2
22- 2
23- 4
24- 4
25- 4
mahendra rane
Posted 8/3/2007 at 8:46 am | Permalink
1-1
2- 4
3- 1
4- 1,3,4
5- 4
6- 3
7- 4
8- 3
9- 4
10- 1
11- 1
12- 3
13- 2
14- 1
15- 3
16- 3
17- 1
18- 1
19- 4
20- 2
21- 2
22- 2
23- 4
24- 4
25- 4
converted by Web2PDFConvert.com
Suman Bej
Posted 8/14/2007 at 2:00 am | Permalink
Hi,
I think the answer should be :
1-1
2- 4
3- 1
4- 3,4,5
5- 4
6- 3
7- 4
8- 3
9- 4
10- 1
11- 1
12- 3
13- 2
14- 1
15- 3
16- 3
17- 1
18- 1
19- 4
20- 2
21- 2
22- 2
23- 4
24- 4
25- 4
swarna
Posted 8/17/2007 at 3:42 am | Permalink
Anil kapil
Posted 11/14/2007 at 7:20 am | Permalink
1)1
2)4
3)1
4)2,3,4
5)
6)3
7)4
8)3
9)4
10)2
11)1
12)3
13)4
14)3
15)3
16)3
17)2
18)1
19)4
20)
21)4
22)2
23)4
24)4
25)4
sdp
converted by Web2PDFConvert.com
Posted 11/28/2007 at 1:33 am | Permalink
1)1
2)4
3)1
4)1,3,4
5)4
6)3
7)4
8)3
9)4
10)1
11)1
12)3
13)2
14)3
15)3
16)3
17)1
18)1
19)4
20)1
21)4
22)2
23)4
24)4
25)4
Soanli
Posted 2/22/2008 at 12:46 am | Permalink
Hi
These are my ans’s can u plz tell me my score how many r right & wrong
qtn ans
11
21
33
4 1,3,4
54
63
74
83
94
10 4
11 1
12 3
13 2
14 1
15 3
16 3
17 3
18 1
19 3
20 2
21 2
22 2
23 4
24 4
25 4
hi here is my answer could y ou tell how many answers are correct. Thank y ou.
1. 1
2. 4
3. 1
4. 1 , 3 , 4
5. 4
6. 3
7. 4
converted by Web2PDFConvert.com
8. 3
9. 4
10. 1
11. 1
12. 3
13. 2
14. 3
15. 1
16. 3
17. 1
18. 1
19. 3
20. 2
21. 2
22. 2
23. 1
24. 4
25. 4
Deepika S Verma
Posted 4/3/2008 at 4:37 am | Permalink
1. 1
2. 4
3. 1
4. 1,3,4
5. 4
6. 3
7. 4
8. 3
9. 4
10. 1
11. 1 only one for which exception is raised
12. 3
13. 2
14. 1 befor updating check whether data exist and if y es then handle in
exception with user defined exception else update the data.
15. all the procedures / packages depend on altered procedure / package
needs to be compiled again.
16. 3
17. 1
18. 1
19. 4
20. If any of the change is made either in spec or body , we need to compile both
spec and body of package and all the depending packages.
21. 3
22. 2
23. 4
24. 4
25. 4
tahir
Posted 4/30/2008 at 12:25 am | Permalink
11
22
31
4134
54
65
74
83
9 4*
10 1
11 1
12 3
13 4
14 1*
15 3
16 2
17 1*
converted by Web2PDFConvert.com
18 1
19 1
20 1234*
21 2
22 2
23 4
24 4
25 4
ALEX.C
Posted 8/13/2008 at 9:34 am | Permalink
My answers are:
1) 1;
2) 2;
3) 1;
4) 1,3,4;
5) 2;
6) 3;
7) 4;
8) 3;
9) 4;
10)2;
11)4;
12)3;
13)1;
14)1;
15)1;
16)3;
17)3;
18)1;
19)2;
20)1,4;
21)2;
22)2;
23)4;
24)4;
25)1.
Kanvik
Posted 9/20/2008 at 3:43 am | Permalink
Hii
If any expert can go through my answers and tell my result then i would bbe
thankful to him.
My Answers
———
1. 1
2. 1
3. 2
4. 1,3,4
5. 3
6. 3
7. 4
8. 3
9. 4
10. 1
11. 2
12. 3
13. 2
14. 2
15. 3
16. 3
17. 3
18. 4
19. 4
20. 2
21. 2
22. 2
23. 4
converted by Web2PDFConvert.com
24. 4
25. 1
seenu
Posted 11/10/2008 at 6:00 am | Permalink
1)3
2)4
3)1
4)1,3,4
5)2
6)3
7)4
8)3
9)4
10)2
11)1
12)3
13)2
14)1
15)4
16)3
17)1
18)1
19)4
20)2
21)2
22)2
23)4
24)4
25)4
Salil
Posted 12/1/2008 at 6:13 am | Permalink
1. 1
2. 1
3. 1
4. 1,3,4
5. 4
6. 3
7. 4
8. 4
9. 1
10. 2
11. 1
12. 3
13. 2
14. 1
15. 1
16. 2
17. 3
18. 4
19. 1
20. 4
21. 3
22. 2
23. 4
24. 4
25. 1
compilation #1
Posted 1/19/2009 at 2:18 pm | Permalink
1)* 3 1 1 1,2 1 1
2)* 4 4 1 1,2 4 4
converted by Web2PDFConvert.com
3)* 1 1 1 1 1 2
4)* 1,3,4 1,3,4 1,3,4 1,3,4 (1,3,5) 1,3,5
5)* 2 4 4 4 4 2
6)* 3 3 3 3 3 2,3
7)* 4 4 4 4 4 1
8) 3 3 3 3 3 3
9)** 4 4 2 1 4 4
10)** 2 1 4 4 1 4
11)* 1 1 1 1 1 4
12)* 3 3 3 3 3 1
13) 2 2 2 4 2 2
14)* 1 1 1 1 1 4
15)* 4 3 3 3 3 3
16)* 3 3 3 3 3 2
17) 1 1 1 1 1 2
18) 1 1 1 1 1 1
19) 4 4 4 4 4 4
20)* 2 2 1 1,2 3 3
21)* 2 2 2 4 4 4
22) 2 2 2 2 2 2
23) 4 4 4 4 4 4
24) 4 4 4 4 4 4
25) 4 4 4 4 4 4
P O S T A C O M M E N T
Your email is never published nor shared. Required fields are marked *
Name * Email *
Website
Comment
Post Comment
converted by Web2PDFConvert.com