New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Oracle 1z0-882 Dumps Questions Answers

Page: 1 / 4
Total 100 questions

Oracle Certified Professional, MySQL 5.6 Developer Questions and Answers

Question 1

Which two can be used to obtain information stored in the Diagnostics Area?

Options:

A.

SHOW WARNINGS

B.

GET DIAGNOSTICS CONDITION 1 @errno=MYSQL_ERRNO, @msg =MESSAGE_TEXT;

SELECT @errno, @msg;

C.

SELECT ERRNO, MESSAGE_TEXT FROM INFORMATION_SCHEMA.DIAGNOSTICS_AREA WHERE CONDITION=1

D.

SHOW GLOBAL STATUS LIKE ‘Diagnostics’

Buy Now
Question 2

Your MYSQL server was successfully running for a days, and then suddenly stopped .You are sure that no mysqld process is running.

Which two may provide diagnostic information to help determine why the MYSQL server stopped?

Options:

A.

The general query log file

B.

The syslog on Linux/UNIX or the Event view on windows

C.

The slow query log file

D.

The MYSQL server error log file

E.

The binary log file

Question 3

You are connected to a MySQL server and using a prepared statement. You accidentally exit your session.

What will happen if you log back in to use your prepared statement?

Options:

A.

The statement exists, but will need to be deallocated and re-created.

B.

The statement exists, but the user variables need to be redefined.

C.

The statement can be used, if the MySQL server hasn’t been restarted.

D.

The statement no longer exists.

Question 4

Which two code samples demonstrate valid methods for working with loops?

Options:

A.

DECLARE I INT DEFAULT 0;

Test_loop: LOOP

SET i =i +1;

IF i> =5 THEN

LEAVE test_loop;

END IF;

END LOOP test_loop;

B.

DECLARE i INT DEFAULT 0;

WHILE I < 5ITERATE

SET i = i +1;

END WHILE;

C.

DECLARE i INT DEFAULT 0;

WHILE i < 5 Do

SET i = i + 1;

END WHILE;

D.

DECLARE i INT DEFAULT 0;

Test _loop; LOOP

SET i =i +1;

IF i >=5 THEN LEAVE;

END IF;

END LOOP test_loop;

Question 5

Which three statement types can be prepared?

Options:

A.

LOAD DATA INFILE

B.

CREATE TABLE

C.

CREATE VIEW

D.

ALTER VIEW

E.

CALL

Question 6

Consider the stored procedure

CREATE PROCEDURE param_test (

IN P_in INT,

OUT P_out INT,

INPUT P_inout INT)

BEGIN

SELECT P_in, P_out, P_ inout;

SET P_in, P_inout

END

You execute a series of commands:

What is the output of the CALL and SELECT?

Options:

A.

(0,0,0) and (0,0,0)

B.

(0,0,0,) and (0,200,300)

C.

(0,NULL,0) and(0,200,300)

D.

(0,NULL,0) and (100,200,300)

Question 7

You started a MySQL command –line session with sq1_ mode (empty), and created the person table with the structure:

Mysql> DESC person;

You issue:

INSERT INTO person VALUES (‘casper’, ‘undefined’)

What is the effect?

Options:

A.

‘Casper’ and ‘ undefined values are inserted into the ‘name’ and gender’ column.

B.

The server returns an error indicating that ‘undefined’ cannot be inserted into a column of ENUM type

C.

The server returns a warning and the empty string is inserted to the ‘gender’ column.

D.

The server returns a warning and the first specified value ,”male” is inserted to the gender column.

Question 8

The people table contains the data as shown:

Which two statements return two rows each?

Options:

A.

SELECT DISTINCT last_name, first_name FROM people

B.

SELECT 1,2 FROM people GROUP BY last_name

C.

SELECT first_name, last _name FROM people WHERE age LIKE ‘2’

D.

SELECT 1, 2 FROM people WHERE last _name =’smith’

E.

SELECT first _name, last_name FROM people LIMIT 1, 2

Question 9

As a developer, you inherit this table as part of a project:

CREATE TABLE exam (

Exam_id INTEGER UNSIGNED NOT NULL PRIMARY KEY,

Examinee_id INTEGER UNSIGNED UNIQUE,

Score INTEGER UNSIGNED

)

What change should you make to ensure that examinee_id is an integer value throughout the table?

Options:

A.

The examinee_id column should be designated as PRIMARY KEY.

B.

A NOT NULL qualifier should be moved from exam-id to examinee-id.

C.

The PRIMARY KEY should be dropped and re-created as PRIMARY KEY (examinee-id, exam_id).

D.

A NOT NULL qualifier should be added to examinee_id.

Question 10

Which three view types are not updateable?

Options:

A.

A view created with the TEMPTABLE algorithm

B.

A view containing a GROUP BY clause

C.

A view containing a WHERE clause

D.

A view containing a HAVING clause

E.

A view that contains a literal column

Question 11

A MySQL command- line client is started with safe updates disabled.

Mysql - -safe – updates=0

What happens when you execute an UPDATE statement without a WHERE clause?

Options:

A.

Results in an error

B.

Updates every row in the specified table(s)

C.

Results in - -safe-updates being enabled automatically

D.

Causes a syntax error

Question 12

You attempt to create a temporary table by using the following statement:

CREATE TEMPORARY TABLE employeesMAIN

SELECT * FROM employees1

UNION ALL

SELECT * FROM employees2;

What is the result?

Options:

A.

An error is produced because you cannot create a TEMPORARY TABLE with a UNION.

B.

The employees common to both tables exist in employees MAIN.

C.

A unique list of employees exist in employeesMAIN.

D.

All rows from both tables exist in employeesMAIN.

Question 13

Examine the fruit and wine tables:

Fruit

You execute this query:

SELECT fruited, fruitname FROM fruit

UNION

SELECT id, name, country FROM wine;

What is the result?

Options:

A.

The query succeeds and returns five columns of data.

B.

The query succeeds and returns two columns of data.

C.

The query falls because UNION does not work on tables with different number of columns.

D.

The query falls because the number of columns in the SELECT in the SELECT clauses are not equal.

Question 14

Consider a table my_table , with contents shown:

You execute:

SELECT a b, b a

FROM my_table

WHERE a < s

ORDER BY b;

What does this statement return?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 15

Which three statements describe valid reasons why queries that use “SELECT” construct are discouraged?

Options:

A.

SELECT * may cause more data than you need to be read from disk if your application needs only some columns.

B.

SELECT * causes more data than you need to be sent via the client/server protocol if your application needs only some columns.

C.

SELECT * prevents the use of indexes, so a full table scan for every query.

D.

SELECT *causes your application to depend on the columns present when you wrote it , so your application could break if the table structure changes.

E.

SELECT * causes the statements to return all rows from the table.

Page: 1 / 4
Total 100 questions