๐Ÿงช SQL MCQ Quiz Hub

SQL MCQ SET 2

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

The maximum number of indexes on MyISAM table is _____





โœ… Correct Answer: 4

The data rows of a MyISAM table are stored in _______





โœ… Correct Answer: 1

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





โœ… Correct Answer: 2

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





โœ… Correct Answer: 2

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





โœ… Correct Answer: 4

The slow query log is written as ____





โœ… Correct Answer: 2

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





โœ… Correct Answer: 4

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





โœ… Correct Answer: 2

Which statement is used to verify optimizer operation?





โœ… Correct Answer: 3

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





โœ… Correct Answer: 4

Which of these comparisons is slowest?





โœ… Correct Answer: 2

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





โœ… Correct Answer: 1

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?





โœ… Correct Answer: 2

To convert an int to string, the function is _____





โœ… Correct Answer: 2

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





โœ… Correct Answer: 1

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





โœ… Correct Answer: 4

Which of these can be used to generate hash values?





โœ… Correct Answer: 4

IP numbers can be represented as ______





โœ… Correct Answer: 1

Which is more efficient?





โœ… Correct Answer: 1

Without LOCAL, LOAD DATA is ______





โœ… Correct Answer: 1

Which option turns on the extended-insert?





โœ… Correct Answer: 1

Which table option for MyISAM tables reduces index flushing?





โœ… Correct Answer: 1

Which option repairs MyISAM tables automatically after they open?





โœ… Correct Answer: 1

The option which delays index flushing for slave server is ______





โœ… Correct Answer: 2

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





โœ… Correct Answer: 2

To reactivate indexes the command used is ____





โœ… Correct Answer: 3

Which statement issues a lock on tables?





โœ… Correct Answer: 3

Find the odd one out in terms of scheduling policies.





โœ… Correct Answer: 2

Which table is preferred when there are many updates?





โœ… Correct Answer: 2

Which system variable controls the size of the table cache?





โœ… Correct Answer: 1

Which status indicator assesses how effective the table cache is?





โœ… Correct Answer: 2

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





โœ… Correct Answer: 2

The system variable to maintain InnoDB log buffer size is ____





โœ… Correct Answer: 1

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





โœ… Correct Answer: 1

Which mode tells not to cache query results?





โœ… Correct Answer: 1

Which mode tells cache queries that begin with SELECT SQL_CACHE?





โœ… Correct Answer: 3

Which command is used to remove existing tables or database?





โœ… Correct Answer: 1

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





โœ… Correct Answer: 1

Is duplicate entry of primary key is allowed in SQL?





โœ… Correct Answer: 2

Is duplicate entry of other attributes are allowed in SQL?





โœ… Correct Answer: 1

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





โœ… Correct Answer: 4

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





โœ… Correct Answer: 4

Which Key is used to link two tables in Mysql?





โœ… Correct Answer: 2

Which line of the following statements will produce error?





โœ… Correct Answer: 4

Which compiler is used to execute the structured query language?





โœ… Correct Answer: 3

Which among the following tags belong to Data definition language?





โœ… Correct Answer: 4

Which among the following tags belong to Data Manipulation language?





โœ… Correct Answer: 4

Query Mechanism performs the following functions?





โœ… Correct Answer: 4

What jobs Query Optimizer perform in Mysql?





โœ… Correct Answer: 1

Which are the two languages used in Mysql?





โœ… Correct Answer: 1