SQL MCQ Quiz Hub

SQL MCQ SET 8

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

1. The log enabled by –relay-log-index is _____




2. What is the storage size in bytes required for the MEDIUMINT datatype?




3. What is the size of the BIT type?




4. What is the synonym for REAL?




5. Execution on a time activated basis according to a schedule is done by _______




6. The character that the MySQL client program recognizes as a statement delimiter is _______




7. Which upgrade involves exporting existing data using mysqldump?




8. Which upgrade involves shutting down the old MySQL version and replacing the old binaries?




9. Slow shutdown can be performed by setting innodb_fast_shutdown to ________




10. The command to see the warning messages is _______




11. What is the SQL mode to check for divide by zero error?




12. The mode used to turn on strict mode and all of the additional restrictions is ____




13. The number of values returned from a stored procedure can be _____




14. How would a stored function named PI() written in the database ‘sampdb’ be called?




15. The privilege that must be given to the database to create a stored function or procedure is _____




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




17. What enables the read and execute access to all users outside of mysql group.




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




19. What does the AUTO_INCREMENT sequences normally begin at?




20. How can the value of recently generated sequence number be obtained?




21. What does LAST_INSERT_ID() return when no AUTO_INCREMENT value has been generated during the current connection?




22. Triggers are not supported for ______




23. How is a stored procedure invoked?




24. Which table lists the accounts and the databases for which the privileges are provided?




25. The table that lists the column level privileges is ______




26. Which of these grant table scope columns is case insensitive?




27. What causes a replication master server to delete all the binary log files even if they are still in use?




28. What does ‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, result in?




29. What does the expression ‘2 BETWEEN 2 AND 5’ result in?




30. The line that is not used to turn on the event scheduler is ______




31. The statement that is used to check the status of the event scheduler at runtime is _____




32. The value of event_scheduler that enables checking status but not changing it at runtime is ______________




33. How many files does each end of a client/server connection including SSL support use to set up secure communications?




34. The TLS protocol is _____




35. The grant table scope columns that is case insensitive is _____




36. Which variable checks for the availability of SSL support?




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




38. The datatype that stores the longest length of strings is _____




39. The security context when a user creates a stored program that accesses sensitive data but forgets that other people who can invoke the object have the same access is ______




40. The recovery of data changes made since a given point in time is called ____




41. What performs a key distribution analysis and stores the distribution for the named table or tables?




42. Which of the following columns is not returned by ‘OPTIMIZE TABLE’?




43. REPAIR TABLE does not work for _____




44. What is a synonym for CHARACTER SET?




45. The line which is written at the top of the script to write a Perl script using CGI.pm is _______




46. To perform consistency checks on a MyISAM table the statement is _____




47. The statement that performs key distribution analysis and stores the distribution for the named tables is _______




48. The column not returned by ‘OPTIMIZE TABLE’ is ______




49. For which table does ‘REPAIR TABLE’ not work?




50. What is the Perl DBI?