分享
 
 
 

1Z0-001考题回忆12.17

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

Hi there!

I've passed 1z0-001 today with a score of 50/57.I've used the SYBEX SQL-PLSQL Study guide,Exam cram

SQL/PLSQL and a host of other resources including braindumps from a very good site.But i've not taken the full

advantage of Dumps as i 've very less time when i got them.I,ve also used SelfTest Practice Software which is

pretty good.

Don't miss to visit 'http:\\nav.to\ocpbraindump\' site if u're planning to take 1z0-001 exam.

Here are my contributions,

1.There was a table structure .. for PLAYER table

ID NUMBER;

FIRSTNAME VARCHAR@;

LASTNAME VARCHAR2;

MANAGER NUMBER;

u've to selfjoin the table to obtain players and their managers the answer query is..

select p.id,p.firstname||p.lastname,m.firstname||m.lastname

from players p,players m

where p.id=m.manager; something like this cant remeber full options..

2.which operator is not used in a non equijoin

a.in b.= c.between d.

3.In which section of the PL/SQL block the user defined exception is raised.

a.heading b.declarative c.executive d.exception

4.u need to store data of numbers u know that the scale value will always be 2 decimals,but not sure about how

many digits in integer part.which datatype is most appropriate for this scenario.

a.number b.number(P) c.long d.raw

5.Evaluate the following PL/SQL block

BEGIN

FOR i in 1..10 LOOP

IF i=4 OR i=6 THEN

null;

ELSE

insert into TEST(no) Values(i);

END IF;

COMMIT;

END LOOP;

ROLLBACK;

END;

How may values do the test table will have?

a.0 b.8 c.10 d.4

6.Evaluate the following PL/SQL block

DECLARE

x NUMBER;

v_sal NUMBER := 1000;

V_found VARCHAR2(10):= 'YES'

BEGIN

x:=500;

v_sal:=1000;

DECLARE

v_found VARCHAR2(10) := 'TRUE';

y NUMBER;

BEGIN

IF v_sal500 THEN

v_found:='YES';

ELSE

null;

END IF;

DBMS_OUTPUT.PUT_LINE(v_sal||' '||v_found);

y:=20

END;

DBMS_OUTPUT.PUT_LINE(v_sal||' '||v_found || y);

END;

What will be the output of this Block..

a.PLS:201 identifier 'Y' must be declared

b.value of v_sal,v_found will be displayed

c.value of v_sal,v_found,y will be displayed

d.PLS:201 identifier v_sal must be declared

7.6.Evaluate the following PL/SQL block

DECLARE

x NUMBER;

v_sal NUMBER := 1000;

V_found VARCHAR2(10):= 'YES'

BEGIN

x:=500;

v_sal:=1000;

DECLARE

v_found VARCHAR2(10) := 'TRUE';

y NUMBER;

BEGIN

IF v_sal500 THEN

v_found:='YES';

ELSE

null;

END IF;

DBMS_OUTPUT.PUT_LINE(v_sal||' '||v_found);

y:=20

END;

DBMS_OUTPUT.PUT_LINE(v_sal||' '||v_found || y);

END;

Why this block will show an error?

a.the scope of variable 'y' is limited to inner block

b.the scope of variable v_sal is limited to outer block

c. --- d. ----

8.Jane has been granted the same privileges as u got on u'r emp table.u're updating the emp table and u

asked Jane to log to the database and check the emp table;

Which tasks can the Jane be allowed to do?

a.Jane can access the emp table but cannot see the changes and not be able to make the same changes.

b.Jane will not be allowed to access the emp table;

c.Jane will be allowed to access the emp table and can see teh changes made by u.

9.Which of these is a system level security?

a.DROP ANY TABLE

b.ALTER

c.INDEX

d.EXECUTE

10.Evaluate the following PLSQL block

DECLARE

CURSOR cust_cursor (p_empno NUMBER, p_ename VARCHAR2) IS

SELECT * FROM emp

WHERE empno=p_empno

AND ename = p_ename;

Which statement will correctly open this cursor?

a.OPEN cust_cursor;

b.OPEN cust_cursor('ALLEN',20);

c.OPEN cust_cursor(10,'SCOTT');

d. ...

11. Consider the following statements ..

CREATE ROLE clerk;

CREATE ROLE hrmanager;

CREATE ROLE inventory;

CREATE USER scott IDENTIFIED BY tiger;

GRANT inventory to clerk;

GRANT hrmanager TO clerk;

GRANT inventory TO SCOTT;

How many roles has been granted to user SCOTT?

a. 0

b.1

c.2

d.None

12. u've created one view on emp as emp_hist_v and u want to see what are all the columns that are retrieved

by the view(view definition) what will u do?

a. describe emp

b.describe emp_hist_v

c.select text from user_views

where view_name='EMP_HIST_V';

d. some wrong select statement

13.U've created an index like

create index emp_deptid_fk_idx on emp(deptid);

there are two tables emp and dept and emp table contain a FK deptid which reference the dept tables deptid.

Know u've created the index what is achieved ?

a.index is stored in emp table

b.it reduces I/O using SELECT statement

c.performs full table scan

d.increases performance of u'r insert statements

14.a question about TO_CHAR function using 'RR' format

15.know what ALL_COL_PRIVS_RECD datadictionary view

16.Evaluate this block

IF v_val100 THEN

v_new_val:=2*v_val;

ELSIF v_val 200 THEN

v_new_val :=4* v_val;

ELSIF v_val

v_new_val:=6*v_val;

END IF;

What is the value of v_new_val if v_val =250?

a. 1000

b.500

c.1500

d.error

17.know how to run a script file in SQL*PLUS environment(START )

18. Evaluate this block

DECLARE

CURSOR some cursor definition ....

BEGIN

FOR cur_rec in curs LOOP

--some processing given here ....

END LOOP;

CLOSE curs;

END;

Why this statement will fail?

A.no explicit closing of the cursor

19. u've given the following update statement ...

-- some update statement given ...

u want to know whether next fetch returned rows are not what will u do?

Ans: use SQL%FOUND attribute (this's the only valid thing given)

20.u're proceesing a cursor and in the middle fetched some rows..

what will be the next step in the processing of a cursor?

a.OPEN

b.Test whether fetch return rows

c.CLOSE

d. ....

21.u've created this

CREATE SYNONYM emp FOR Ed.Employee;

what will be achieved?

a.Need to qualify the table with schema name is removed for the user Ed

b..Need to qualify the table with schema name is removed for u only

c..Need to qualify the table with schema name is removed for all users of the database

d..Need to qualify the table with schema name is removed for the users who can access emp table

22.a ques about sequence i only remember answer

CREATE SEQUENCE patient_id_seq

START WITH 10000

MAXVALUE 999999999

NOCYCLE;

23.a ques about the uses of WHERE clause(u've to pick 3)

24. In a PLSQL block which of these will generate an exception? (Pick 2)

a.select will return a single row (when used with INTO)

b.select will return multiple rows (when used with INTO)

c.a select statement with group by c

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有