Download Oracle.1z0-882.TestKing.2018-01-03.100q.vcex

Download Exam

File Info

Exam MySQL 5.6 Developer
Number 1z0-882
File Name Oracle.1z0-882.TestKing.2018-01-03.100q.vcex
Size 4 MB
Posted Jan 03, 2018
Download Oracle.1z0-882.TestKing.2018-01-03.100q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 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?


  1. The application tried to INSERT a row that exceeded max_allowed_packet.
  2. The network caused an error Inducing the max_allowed_packet error.
  3. The application did not use the COMPRESS () function for a large result set.
  4. The application tried to SELECT many rows together that exceeded max__allowed_packet.
  5. The application tried to SELECT a row that exceeded max_allowed_packet.
  6. The operating system caused an error inducing the max_allowed_packet error.
Correct answer: AF



Question 2

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


  1. mysql_info
  2. mysql_error
  3. mysql_warning_count
  4. mysql_errno
Correct answer: AC
Explanation:
http://dev.mysql.com/doc/refman/5.6/en/c-api-function-overview.html
http://dev.mysql.com/doc/refman/5.6/en/c-api-function-overview.html



Question 3

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?


  1. Yes; the trigger works correctly.
  2. No; FOR EACH ROW is invalid syntax.
  3. No; the syntax should be CREATE TRIGGER city-bi ON city BEFORE INSERT….
  4. No; the OLD keyword cannot be used in an INSERT trigger.
Correct answer: D



Question 4

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?


  1. LOAD DATA INFILE ‘/tmp/people.txt’INTO TABLE  PEOPLE@First=$2. @Last=$3  @Country=$4 
    (CONCAT (@First, ‘  ‘,@Last) ,  @ Country)
  2. LOAD DATA INFILE ‘/tmp/people.txt ‘ INTO TABLE  People 
    @Skip=$1 , @ First=$2,  @Last=$3,  @ Country=4, 
    (CONCAT (@First, ‘  ‘ .@ Last) , @ Country)
  3. LOAD DATA INFILE ‘/tmp/people.txt ‘INTO TABLE People 
    (@ Skip, @First , @Last, @Country 
    SET  Name=CONCAT (@First, ‘  ‘,@Last)
  4. LOAD DATA  INFILE  ‘/tmp/people,txt, INTO TABLE People. 
    (@Skip. @First, @Last, @Country) 
    Country=@country
  5. It is not possible to load the data from the file/tmp/people.txt into the people table, as shown.
Correct answer: C



Question 5

What are two ways in which normalizing your tables helps improve performance In MySQL?


  1. Smaller table sizes and row lengths improve sorting operations.
  2. Separate tables allow indexing more columns.
  3. Fewer nullable column improve index usage.
  4. Normalizing Improves the performance of innodb_file_per _table.
Correct answer: D



Question 6

You create a table and a stored procedure:
CREATE TABLE  t1 (f1  int); 
INSERT INTO t1 VALUES (1), (2) , (3),  (4), (5); 
CREATE PROCEDURE sum_t1() 
      BEGIN 
            DECLARE  done INT DEFAULT  0; 
            DECLARE  va1 INT; 
            DECLARE  result CURSOR FOR SELECT f1 FROM t1; 
            DECLARE  CONTINUE  HANDLER FOR NOT FOUND SET done=1; 
            OPEN cur; 
            REPEAT 
                  FETCH  cur INTO va1; 
                  IF NOT done THEN 
                     SET  result = result +va1; 
                  END  IF:
              UNTIL done  END  REPEAT; 
               SELECT  result; 
   END 
CALL   sum_t1(); 
What  is the result of the CALL statement?


  1. The procedure completes, and 15 is returned
  2. The procedure’s IF condition is not satisfied, and 0 is returned.
  3. The procedure’s loop is not entered, and 1 is returned.
  4. An infinite loop will be running until the command is killed.
Correct answer: D



Question 7

A floating- point column defined as FLOAT(7,5)allows___________


  1. 7 digits to the left of the decimal point and 5 digits to the right
  2. 5 digits to the left of the decimal point and 7 digits to the right
  3. 7 digits in total, of which 5 are to the right of the decimal point
  4. 7 digits in total, of which 5 are to the left of the decimal point
Correct answer: C



Question 8

You try to add a foreign key to the InnoDB table employees:
Mysq1> ALTER TABLE employees ADD FOREIGN KEY (Department_ID) REFERENCES departments (Department_ID); 
ERROR 1215 (HY000): cannot add foreign key constraint
Which command will provide additional information about the error?


  1. SHOW ERRORS
  2. Error 1215
  3. SHOW ENGINE INNODB STATUS
  4. SELECT FROM information_schema.INNODB_SYS_FOREIGN
Correct answer: A
Explanation:
Reference: http://zeering.com/LoadAnswers.aspx?q=Foreign%20Key%20constraint (see update)
Reference: http://zeering.com/LoadAnswers.aspx?q=Foreign%20Key%20constraint (see update)



Question 9

Identity two ways to configure a PHP application to use the UTF8 character set.


  1. mysqli: :query (‘’SET NAMES utfs’’);
  2. mysqli : :set_charset (‘utf8’)
  3. spdo = new PDO (‘’mysql:host=localhost;dbname=test;charset=utfs’’, user’’, ‘’pass’’);
  4. PDO: :set_charset(‘’utf8’’)
Correct answer: B
Explanation:
Reference: http://stackoverflow.com/questions/5842980/a-permanent-way-of-doing-mysqli-set-charset
Reference: http://stackoverflow.com/questions/5842980/a-permanent-way-of-doing-mysqli-set-charset



Question 10

The data from t1 table is:
  
Assuming You want to see this output: 
  
Which query achieves the preceding result?


  1. SELECT name FROM t1 WHERE name LIKE ,_e%
  2. SELECT name FROM t1 WHERE name LIKE,e%.;
  3. SELECT name FROM t1 GROUP BY name ORDER by name LIMIT 1,1;
  4. SELECT name FROM t1 GROUP BY name HAVING sun ( marks)=176 ORDER BY name;
Correct answer: C









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files