MySQL Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 16% Most missed: “Which MySQL command shows the structure of a table?”

MySQL MCQs For LinkedIn Skill Assessments.

MySQL Test
Time left 00:00
25 Questions

1. If you need to order a table of movies by name, which query will work?
2. Explain the security aspect of stored procedures
3. How does MySQL differ from SQL?
4. Why would you use a common table expression (CTE)?
5. You are working with the tables as shown in this diagram. You need to make sure that any record added to the purchases table consists of a customerID, which already exists in the customers table, and a carID, which already exists in the cars table. You decide to use a trigger to do the validation. Which one do you use?
6. In recent versions of MySQL (8.0+), what's the correct syntax to declare a CTE (Common Table Expression)?
7. MySQL uses environment variables in some of the programs and command-line operations. Which variable is used by the shell to find MySQL programs?
8. MySQL option files provide a way to specify commonly used options so that they need not be entered on the command line each time you run a program. What is another name for the option files?
9. Later versions of mysql support the native json data type for storing json documents. What is a drawback of json columns?
10. A trigger is a database object that is associated with a table, and that activates when a particular event occurs for the table. Which three events are these?
11. Which choice is not one of the table maintenance statements?
12. What mysql statement is used to check which accounts have specific privileges?
13. When working with MySQL cursor, what must you also declare?
14. What is the default port for MySQL Server?
15. What is the requirement for using a subquery in the SELECT clause?
16. MySQL programs are a set of command-line utilities that are provided with typical MySQL distributions. MySQL is designed to be a database.
17. Which query would NOT be used to administer a MySQL server?
18. What does the following SQL statement return?
'SELECT * FROM Employees WHERE EmployeeName LIKE 'a%
19. What does this SQL statement return?

SELECT name FROM students WHERE name REGEXP '^to';
20. Which MySQL command modifies data records in a table?
21. You are working with the tables as shown in this diagram. You need to generate the list of customers who purchased certain car models. Which SQL clause do you use?
22. MySQL server can operate in different SQL modes, depending on the value of the sql_mode system variable. Which mode changes syntax and behavior to conform more closely to standard SQL?
23. You are importing data as JSON into a new table. You run CREATE TABLE json_data ( city JSON ); and insert rows into this table. What is the correct syntax to see the list of cities?
24. What is the MySQL 'perror' command-line utility used for?
25. Which statement about the 'TRUNCATE TABLE' statement is true?