Vidyalelo
MySQL · all questions

MySQL
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

1,185

Questions

55/60

Page

Pick an option on a question to see the right answer and solution.

What will be the result of the following MySQL command?
SELECT emp_id,
‘ACTIVE’ STATUS,
emp_id * 3.14 emp_pi,
UPPER (lname) last_name
FROM employee;

Select an option to see the answer and solution.

The exec_stmt_ssl is written in . . . . . . . .

Select an option to see the answer and solution.

What is the kind of delete when deletion of an employee from the table also deletes that employee from another table?

Select an option to see the answer and solution.

What is the best datatype for a column that is expected to store values up to 2 million?

Select an option to see the answer and solution.

All API calls return a value.

Select an option to see the answer and solution.

"Numeric Data" is used to store . . . . . . . .

Select an option to see the answer and solution.

Stored programs degrade database security.

Select an option to see the answer and solution.

Is there any error in the following MySQL command?
SELECT emp_id, title, start_date, fname, fed_id
FROM person
ORDER BY LEFT (fed_id, 3);

Select an option to see the answer and solution.

mysql_next_result() does not return a status.

Select an option to see the answer and solution.

What will be the output of the following MySQL statement?
SELECT emp_id, fname, lname
FROM employee
WHERE LEFT (lname, 1) =’T’;

Select an option to see the answer and solution.

What is generally done if an error occurs during the transaction?

Select an option to see the answer and solution.

Which are the two languages used in Mysql?

Select an option to see the answer and solution.

On Unix, 'mysql' client writes a record of executed statements to a history file.

Select an option to see the answer and solution.

How many of the following do not return rows?
SELECT, SHOW, DESCRIBE

Select an option to see the answer and solution.

Which statement is used to create a trigger?

Select an option to see the answer and solution.

'character_set_database' represents the character set used by the default database.

Select an option to see the answer and solution.

What will be the output of the following MySQL command?
SELECT *
FROM employee
WHERE title=’HEAD TELLER’;

Select an option to see the answer and solution.

To combine multiple retrievals, which keyword is used to write several SELECT statements between them?

Select an option to see the answer and solution.

The join in which all the rows from the right table appear in the output irrespective of the content of the other table is . . . . . . . .

Select an option to see the answer and solution.

The storage size in bytes required for the MEDIUMINT datatype is . . . . . . . .

Select an option to see the answer and solution.