🧪 SQL MCQ Quiz Hub

SQL MCQ SET 2

Choose a topic to test your knowledge and improve your SQL skills

1. The maximum number of indexes on MyISAM table is _____




2. The data rows of a MyISAM table are stored in _______




3. In a single table (with 10 columns) join query the number of values needed to examine per column is _____




4. If a column contains 7 values and 6 distinct values, the cardinality is _____




5. For a table having 4 columns, the number of columns to which hash function is applied when using hash indexes is _____




6. The slow query log is written as ____




7. To check how MySQL would execute a SELECT query, which statement is used?




8. To perform analysis of key values by the server, the statement used is ______




9. Which statement is used to verify optimizer operation?




10. Which statement is used to force the optimizer to use tables in a particular order?




11. Which of these comparisons is slowest?




12. Which system variable tells the optimizer to skip certain plans based on estimates of the number of rows accessed for each table?




13. Which system variable tells how far into the rest of each incomplete plan the optimizer should look to evaluate whether it should be expanded further?




14. To convert an int to string, the function is _____




15. To convert a string to an int, the function is ______




16. To maintain performance of tables having variable length rows, which statement is used?




17. Which of these can be used to generate hash values?




18. IP numbers can be represented as ______




19. Which is more efficient?




20. Without LOCAL, LOAD DATA is ______




21. Which option turns on the extended-insert?




22. Which table option for MyISAM tables reduces index flushing?




23. Which option repairs MyISAM tables automatically after they open?




24. The option which delays index flushing for slave server is ______




25. TO enable the compressed client/server protocol the option is ______




26. To reactivate indexes the command used is ____




27. Which statement issues a lock on tables?




28. Find the odd one out in terms of scheduling policies.




29. Which table is preferred when there are many updates?




30. Which system variable controls the size of the table cache?




31. Which status indicator assesses how effective the table cache is?




32. In MySQL, the default size of the key buffer in MB is _____




33. The system variable to maintain InnoDB log buffer size is ____




34. To determine whether query cache is supported by the server the variable is _____




35. Which mode tells not to cache query results?




36. Which mode tells cache queries that begin with SELECT SQL_CACHE?




37. Which command is used to remove existing tables or database?




38. Which command is used to display all the existing tables in a database?




39. Is duplicate entry of primary key is allowed in SQL?




40. Is duplicate entry of other attributes are allowed in SQL?




41. Which is the correct format to store date in the SQL?




42. Which of the following are the valid database datatypes in Mysql?




43. Which Key is used to link two tables in Mysql?




44. Which line of the following statements will produce error?




45. Which compiler is used to execute the structured query language?




46. Which among the following tags belong to Data definition language?




47. Which among the following tags belong to Data Manipulation language?




48. Query Mechanism performs the following functions?




49. What jobs Query Optimizer perform in Mysql?




50. Which are the two languages used in Mysql?