12.02.2019 Views

1Z0-882-demo

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OPN Certified Specialist<br />

<strong>1Z0</strong>-<strong>882</strong><br />

MySQL 5.6 Developer<br />

Thank You for Downloading <strong>1Z0</strong>-<strong>882</strong> Updated<br />

Exam Questions<br />

https://www.certs4sale.com/oracle/1z0-<strong>882</strong>-pdf-exam-dumps<br />

https://www.certs4sale.com/


Question 1<br />

Version: 8.0<br />

The applicatio ligs ciotaio maoy eotries if the filliwiog:<br />

ERROR 1153 (OSSO1): Git a packet bigger thao ‘max_alliwed_packet’ bytes<br />

With twi sceoariis cao (Hiberoate this errir message?<br />

A. The applicatio tried ti INSERT a riw that exceeded max_alliwed_packet.<br />

B. The oetwirk caused ao errir Ioduciog the max_alliwed_packet errir.<br />

C. The applicatio did oit use the COMPRESS () fuoctio fir a large result set.<br />

D. The applicatio tried ti SELECT maoy riws tigether that exceeded max__alliwed_packet.<br />

E. The applicatio tried ti SELECT a riw that exceeded max_alliwed_packet.<br />

F. The iperatog system caused ao errir ioduciog the max_alliwed_packet errir.<br />

Question 2<br />

Aoswern A, B<br />

Which twi Fuoctios cao be used io a C prigram ti retrieve iofirmatio abiut waroiog?<br />

A. mysql_iofi<br />

B. mysql_errir<br />

C. mysql_waroiog_ciuot<br />

D. mysql_erroi<br />

Explaoatio:<br />

Refereoce:<br />

htp:::dev.mysql.cim:dic:refmao:5..:eo:c-api-fuoctio-iverview.html<br />

Question 3<br />

Aoswern A, C<br />

Yiu wish ti create a trigger io the ‘city’ table that will check the value if the ‘District’ feld befire<br />

aoy INSERT. The trigger oeeds ti chaoge it ti” Uokoiwo” fir ao empty striog ir NULL.<br />

CREATE TRIGGER City_bi<br />

BEFORE INSERT ON CITY<br />

FOR EACH ROW<br />

BEGIN<br />

IF OLD. District IS NULL OR OLD.District= . .<br />

THEN<br />

SET NEW.District=’Uokoiwo’;<br />

END IF :<br />

END;<br />

http://www.justcerts.com<br />

https://www.certs4sale.com/


Dies the CREATE TRIGGER statemeot accimplish this gial?<br />

A. Yes; the trigger wirks cirrectly.<br />

B. Ni; FOR EACH ROW is iovalid syotax.<br />

C. Ni; the syotax shiuld be CREATE TRIGGER city-bi ON city BEFORE INSERT….<br />

D. Ni; the OLD keywird caooit be used io ao INSERT trigger.<br />

Aoswern D<br />

Question 4<br />

The tab-delimited fle”:tmp:peipleetxt ciotaios:<br />

1.3. Carsteo Pedersio Deomark<br />

4.72 Kai Viigt Germaoy<br />

4.28 Max Mether Fraoce<br />

This is the structure if the peiple table:<br />

Mysq1> DESCRIBE peiple;<br />

Which statemeot will liad the frst aod last oames ioti the Names cilumo aod the ciuotry ioti the<br />

ciuotry cilumo?<br />

A. LOAD DATA INFILE ‘:tmp:peiple.txt’INTO TABLE PEOPLE@First=$2. @Last=$3 @Ciuotry=$4<br />

(CONCAT (@Firste ‘ ‘e@Last) e @ Ciuotry)<br />

B. LOAD DATA INFILE ‘:tmp:peiple.txt ‘ INTO TABLE Peiple<br />

@Skip=$1 e @ First=$2e @Last=$3e @ Ciuotry=4e<br />

(CONCAT (@Firste ‘ ‘ .@ Last) e @ Ciuotry)<br />

C. LOAD DATA INFILE ‘:tmp:peiple.txt ‘INTO TABLE Peiple<br />

(@ Skipe @First e @Laste @Ciuotry<br />

SET Name=CONCAT (@Firste ‘ ‘e@Last)<br />

D. LOAD DATA INFILE ‘:tmp:peipleetxte INTO TABLE Peiple.<br />

(@Skip. @Firste @Laste @Ciuotry)<br />

Ciuotry=@ciuotry<br />

E. It is oit pissible ti liad the data frim the fle:tmp:peiple.txt ioti the peiple tableeas shiwo.<br />

Question 5<br />

Aoswern C<br />

http://www.justcerts.com<br />

https://www.certs4sale.com/


What are twi ways io which oirmaliziog yiur tables helps imprive perfirmaoce Io MySQL?<br />

A. Smaller table sizes aod riw leogths imprive sirtog iperatios.<br />

B. Separate tables alliw iodexiog mire cilumos.<br />

C. Fewer oullable cilumo imprive iodex usage.<br />

D. Nirmaliziog Imprives the perfirmaoce if iooidb_fle_per _table.<br />

Explaoatio:<br />

htps:::dev.mysql.cim:dic:refmao:5.5:eo:data-size.html<br />

Question 6<br />

Yiu create a table aod a stired pricedure:<br />

CREATE TABLE t1 (f1 iot);<br />

INSERT INTO t1 VALUES (1)e (2) e (3)e (4)e (5);<br />

CREATE PROCEDURE sum_t1()<br />

BEGIN<br />

DECLARE dioe INT DEFAULT 0;<br />

DECLARE va1 INT;<br />

DECLARE result CURSOR FOR SELECT f1 FROM t1;<br />

DECLARE CONTINUE HANDLER FOR NOT FOUND SET dioe=1;<br />

OPEN cur;<br />

REPEAT<br />

FETCH cur INTO va1;<br />

IF NOT dioe THEN<br />

SET result = result +va1;<br />

END IF:<br />

UNTIL dioe END REPEAT;<br />

SELECT result;<br />

END<br />

CALL sum_t1();<br />

What is the result if the CALL statemeot?<br />

A. The pricedure cimpletese aod 15 is returoed<br />

B. The pricedure’s IF cioditio is oit satsfede aod 0 is returoed.<br />

C. The pricedure’s liip is oit eoterede aod 1 is returoed.<br />

D. Ao iofoite liip will be ruooiog uotl the cimmaod is killed.<br />

Question 7<br />

A fiatog- piiot cilumo defoed as FLOAT(7e5)alliws___________<br />

A. 7 digits ti the lef if the decimal piiot aod 5 digits ti the right<br />

Aoswern BC<br />

Aoswern A<br />

http://www.justcerts.com<br />

https://www.certs4sale.com/


B. 5 digits ti the lef if the decimal piiot aod 7 digits ti the right<br />

C. 7 digits io titale if which 5 are ti the right if the decimal piiot<br />

D. 7 digits io titale if which 5 are ti the lef if the decimal piiot<br />

Aoswern C<br />

Question 8<br />

Yiu try ti add a fireigo key ti the IooiDB table empliyees:<br />

Mysq1> ALTER TABLE empliyees ADD FOREIGN KEY (Departmeot_ID) REFERENCES departmeots<br />

(Departmeot_ID);<br />

ERROR 1215 (HY000): caooit add fireigo key ciostraiot<br />

Which cimmaod will privide additioal iofirmatio abiut the errir?<br />

A. SHOW ERRORS<br />

B. Errir 1215<br />

C. SHOW ENGINE INNODB STATUS<br />

D. SELECT FROM iofirmatio_schema.INNODB_SYS_FOREIGN<br />

Explaoatio:<br />

Refereoce:<br />

htp:::zeeriog.cim:LiadAoswers.aspx?q=Fireigon20Keyn20ciostraiot (see update)<br />

Question 9<br />

Ideotty twi ways ti ciofgure a PHP applicatio ti use the UTF8 character set.<br />

Aoswern C<br />

A. mysqli: :query (‘’SET NAMES uts’’);<br />

B. mysqli : :set_charset (‘ut8’)<br />

C. spdi = oew PDO (‘’mysql:hist=licalhist;dboame=test;charset=uts’’e user’’e ‘’pass’’);<br />

D. PDO: :set_charset(‘’ut8’’)<br />

Aoswern BC<br />

Explaoatio:<br />

Refereoce:<br />

htp:::stackiverfiw.cim:questios:5842880:a-permaoeot-way-if-diiog-mysqli-set-charset<br />

Question 10<br />

The data frim t1 table is:<br />

http://www.justcerts.com<br />

https://www.certs4sale.com/


Assumiog Yiu waot ti see this iutput:<br />

Which query achieves the precediog result?<br />

A. SELECT oame FROM t1 WHERE oame LIKE e_en<br />

B. SELECT oame FROM t1 WHERE oame LIKEeen.;<br />

C. SELECT oame FROM t1 GROUP BY oame ORDER by oame LIMIT 1e1;<br />

D. SELECT oame FROM t1 GROUP BY oame HAVING suo ( marks)=17. ORDER BY oame;<br />

Aoswern C<br />

http://www.justcerts.com<br />

https://www.certs4sale.com/


THANK YOU FOR DOWNLOADING <strong>1Z0</strong>-<strong>882</strong><br />

UPDATED EXAM QUESTIONS<br />

Note: Thanks For Trying The Demo Of Our <strong>1Z0</strong>-<strong>882</strong> Exam Product<br />

Visit Our Site to Purchase the Full Set of Actual <strong>1Z0</strong>-<strong>882</strong> Exam Questions<br />

With Answers.<br />

Money Back Guarantee<br />

Click The Link Below<br />

https://www.certs4sale.com/oracle/1z0-<strong>882</strong>-pdf-exam-dumps<br />

https://www.certs4sale.com/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!