OCP 1Z0-001 Practice Test
FranklinFaces.com
FranklinFaces.com - Oracle & SQL Server Database Forums for all IT Professionals
 Home          Members     Calendar     Who's On

Welcome Guest ( Login | Register )
        



OCP 1Z0-001 Practice Test Expand / Collapse
Message
Posted 7/14/2010 3:01:19 AM Post #421
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Read the question and then click on the checkbox  that contains the correct answer(s). The small field to the immediate right of the question will either display "Yes" if you are correct or "No" if you have selected the wrong answer.
Click on the "Explanation" button to find out more about the answer and click "Next Question" to continue the OCP Practice Test.
Your answers are not graded, so keep track of the topics which with you had difficulty.
There is a poll and additional Oracle resources on the final page of the OCP Practice test so be sure to finish. Good luck!

OCP 1Z0-001 Practice Test 

1.Which should you do after each FETCH statement in a PL/SQL block?
A.Open the cursor.
B.Close the cursor.
C.Initialize the loop.
D.Test for rows using a cursor attribute.
Correct 
2.Given this executable section of a PL/SQL block: BEGIN FOR employee_record IN salary_cursor LOOP  employee_id_table(employee_id)  :=  employee_record.last_name;  END  LOOP;  CLOSE salary_cursor; END; Why does this section cause an error?
A.The cursor needs to be opened.
B.No FETCH statements were issued.
C.Terminating conditions are missing.
D.The cursor does not need to be closed.
Correct 
3.The  structure  of  the DEPT  table  is  as  follows: Name Null?  Type  -------------------------------  -------- ------- DEPTNO NOT NULL NUMBER(2) DNAME VARCHAR2(14) LOC VARCHAR2(13) Examine  the code:  DECLARE  TYPE  dept_record_type  IS  RECORD  (dno  NUMBER,  name  VARCHAR2(20)); dept_rec dept_record_type; BEGIN SELECT deptno, dname  INTO dept_rec FROM dept WHERE deptno = 10; END; Which statement displays the name of the selected department?
A.DBMS_OUTPUT.PUT_LINE(name);
B.DBMS_OUTPUT.PUT_LINE(dname);
C.DBMS_OUTPUT.PUT_LINE(dept_rec.name);
D.DBMS_OUTPUT.PUT_LINE(dept_rec.dname);
E.DBMS_OUTPUT.PUT_LINE(dept_rec(name));
Correct:C

http://pdf.nowexam.com/1Z0-001.pdf

help you p***any it certifications,100% Ensure Making you P***the IT Certification!

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: silencer

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 6:59pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.026. 11 queries. Compression Disabled.
Contextual Links