SQL MCQ Quiz Hub

SQL MCQ SET 8

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

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

What is the size of the BIT type?





✅ Correct Answer: 4

What is the synonym for REAL?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

Which upgrade involves exporting existing data using mysqldump?





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Slow shutdown can be performed by setting innodb_fast_shutdown to ________





✅ Correct Answer: 1

The command to see the warning messages is _______





✅ Correct Answer: 4

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

What does the AUTO_INCREMENT sequences normally begin at?





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Triggers are not supported for ______





✅ Correct Answer: 4

How is a stored procedure invoked?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

The table that lists the column level privileges is ______





✅ Correct Answer: 1

Which of these grant table scope columns is case insensitive?





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

The TLS protocol is _____





✅ Correct Answer: 2

The grant table scope columns that is case insensitive is _____





✅ Correct Answer: 1

Which variable checks for the availability of SSL support?





✅ Correct Answer: 1

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





✅ Correct Answer: 4

The datatype that stores the longest length of strings is _____





✅ Correct Answer: 4

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 ______





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

REPAIR TABLE does not work for _____





✅ Correct Answer: 3

What is a synonym for CHARACTER SET?





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

The column not returned by ‘OPTIMIZE TABLE’ is ______





✅ Correct Answer: 2

For which table does ‘REPAIR TABLE’ not work?





✅ Correct Answer: 4

What is the Perl DBI?





✅ Correct Answer: 3