Home > Databases > Quizzes > MySQL Basics Practice Test: Query Optimization
MySQL Basics Practice Test: Query Optimization
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 88% Most missed: ““MODIFY” is used with which “Query clause”?”
Quiz questions on indexing, query optimizer, choosing and loading data types, scheduling and locking issues, administrative level optimizations, query mechanics and clauses.   Here are some tips for optimizing MySQL queries: Add indexes: Add indexes to columns used in WHERE, ORDER BY, and GROUP BY clauses. Indexes are an essential feature of MySQL that help optimize query performance. They also allow MySQL to fetch results faster from a database and sort records. However, indexes can take up space and decrease performance on inserts, deletes, and updates. Optimize joins: Join optimization... Show more
MySQL Basics Practice Test: Query Optimization
Time left 00:00
25 Questions

1. How many of the following implement the default scheduling property of MySQL?
MyISAM, MERGE, MEMORY
2. The number of tables for which DELAYED works is _________________
MyISAM, MEMORY, ARCHIVE, BLACKHOLE
3. Which command is used to display all the existing tables in a database?
4. Accessing data from which of these is faster?
memory, disk
5. Which clause is used to “group rows together by common columns values”?
6. Loading is faster when a table has no indexes than when it is indexed.
7. TO enable the compressed client/server protocol the option is _________________
8. Which option turns on the –extended-insert?
9. The slow query log is written as __________
10. The system variable to maintain InnoDB log buffer size is _________________
11. Reading from a table does not change it.
12. Find the odd one out in terms of scheduling policies.
13. Which of the following are the valid “database datatypes” in Mysql?
14. Without LOCAL, LOAD DATA is _________________
15. Which clause is used to “Identifies table from which to draw table and how the table should be joined”?
16. What are the results of the following SQL commands if col is an integer column?
1. SELECT * FROM mytbl WHERE num_col = '4';
SELECT * FROM mytbl WHERE num_col = 4;"
17. The optimizer_prune_level is set by default.
18. How many of the following shared tablespaces is bound by the OS file size limit?
MyISAM, InnoDB, TRANSACTION
19. To convert a string to an int, the function is _________________
20. Which of these has higher priority?
writes, reads
21. The option which delays index flushing for slave server is _________________
22. Which system variable tells the optimizer to skip certain plans based on estimates of the number of rows accessed for each table?
23. Which clause is used to “Filters out unwanted data”?
24. Which of these can be used to generate hash values?
25. Which system variable controls the size of the table cache?