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

53/60

Page

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

Which Keyword is used to remove duplicate rows in the result set?

Select an option to see the answer and solution.

What will be the output of the following MySQL statement?
SELECT *
FROM employee
WHERE lname LIKE ‘_a%e%’;

Select an option to see the answer and solution.

To check if the data directory contains insecure files or directories, the command executed is . . . . . . . .

Select an option to see the answer and solution.

Which program is used as a utility for MyISAM table maintenance?

Select an option to see the answer and solution.

The MySQL server is not configurable.

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

abc in the following MySQL statement is . . . . . . . .
DELETE FROM xyz WHERE abc = 5;

Select an option to see the answer and solution.

"MODIFY" is used with which "Query clause"?

Select an option to see the answer and solution.

What is the generic handle whose meaning depends on context?

Select an option to see the answer and solution.

In the following MySQL query, "person_1" belongs to which category of table in MySQL?
CREATE VIEW person_1 AS
SELECT fname, lname, person_id FROM person;

Select an option to see the answer and solution.

The datatype best suited to store currency values is . . . . . . . .

Select an option to see the answer and solution.

What is the meaning of the "WHERE" clause in Mysql?

Select an option to see the answer and solution.

Illegal values converted to the appropriate 'zero' value for . . . . . . . .

Select an option to see the answer and solution.

What does the expression '12 DIV 5? evaluate to?

Select an option to see the answer and solution.

The function returning an array of row values is . . . . . . . .

Select an option to see the answer and solution.

The option that executes all SQL statements in a SQL script irrespective of the number of errors is . . . . . . . .

Select an option to see the answer and solution.

If emp_id contain the following set {-1, -2, 2, 3, -3, 1}, what will be the output on execution of the following MySQL statement?
SELECT emp_id
FROM person
ORDER BY emp_id;

Select an option to see the answer and solution.

The shebang line is . . . . . . . .

Select an option to see the answer and solution.

Which statement is used for updating existing information in the table?

Select an option to see the answer and solution.

Which type can store a collection of objects of any type?

Select an option to see the answer and solution.