1z0-882 Actual Exam Questions

Last updated on Nov. 25, 2024.
Vendor:Oracle
Exam Code:1z0-882
Exam Name:MySQL 5.6 Developer
Exam Questions:100
 

Topic 1 - Single Topic

Question #1 Topic 1

The application logs contain many entries of the following:
ERROR 1153 (OSSO1): Got a packet bigger than max_allowed_packet bytes
With two scenarios can (Hibernate this error message?

  • A. The application tried to INSERT a row that exceeded max_allowed_packet.
  • B. The network caused an error Inducing the max_allowed_packet error.
  • C. The application did not use the COMPRESS () function for a large result set.
  • D. The application tried to SELECT many rows together that exceeded max__allowed_packet.
  • E. The application tried to SELECT a row that exceeded max_allowed_packet.
  • F. The operating system caused an error inducing the max_allowed_packet error.
Reveal Solution Hide Solution   Discussion  

Correct Answer: AF 🗳️

Question #2 Topic 1

Which two Functions can be used in a C program to retrieve information about warning?

  • A. mysql_info
  • B. mysql_error
  • C. mysql_warning_count
  • D. mysql_errno
Reveal Solution Hide Solution   Discussion  

Correct Answer: AC 🗳️
http://dev.mysql.com/doc/refman/5.6/en/c-api-function-overview.html

Question #3 Topic 1

You wish to create a trigger on the ‘city’ table that will check the value of the ‘District’ field before any INSERT. The trigger needs to change it to" Unknown" for an empty string or NULL.

CREATE TRIGGER City_bi -

BEFORE INSERT ON CITY -

FOR EACH ROW -

BEGIN -
IF OLD. District IS NULL OR OLD.District= . .

THEN -
SET NEW.District=Unknown;
END IF :
END;
Does the CREATE TRIGGER statement accomplish this goal?

  • A. Yes; the trigger works correctly.
  • B. No; FOR EACH ROW is invalid syntax.
  • C. No; the syntax should be CREATE TRIGGER city-bi ON city BEFORE INSERT….
  • D. No; the OLD keyword cannot be used in an INSERT trigger.
Reveal Solution Hide Solution   Discussion  

Correct Answer: D 🗳️

Question #4 Topic 1

The tab-delimited file"/tmp/people,txt contains:
1636 Carsten Pederson Denmark
4672 Kai Voigt Germany
4628 Max Mether France

This is the structure of the people table:
Mysq1> DESCRIBE people;

Which statement will load the first and last names into the Names column and the country into the country column?

  • A. LOAD DATA INFILE ‘/tmp/people.txt’INTO TABLE PEOPLE@First=$2. @Last=$3 @Country=$4 (CONCAT (@First, ‘ ‘,@Last) , @ Country)
  • B. LOAD DATA INFILE /tmp/people.txt INTO TABLE People @Skip=$1 , @ First=$2, @Last=$3, @ Country=4, (CONCAT (@First, .@ Last) , @ Country)
  • C. LOAD DATA INFILE /tmp/people.txt INTO TABLE People (@ Skip, @First , @Last, @Country SET Name=CONCAT (@First, ,@Last)
  • D. LOAD DATA INFILE /tmp/people,txt, INTO TABLE People. (@Skip. @First, @Last, @Country) Country=@country
  • E. It is not possible to load the data from the file/tmp/people.txt into the people table, as shown.
Reveal Solution Hide Solution   Discussion  

Correct Answer: C 🗳️

file Viewing page 1 out of 25 pages.
Viewing questions 1-4 out of 100 questions
Next Questions
Browse atleast 50% to increase passing rate cup
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago