Q1
True / FalseIn MySQL, an index can speed up the retrieval of rows by using pointers.
Indexes in MySQL help in quick retrieval of data by maintaining pointers to the actual rows in the data table.
Q2
True / FalseIn MySQL, creating an index on a table will not consume any additional storage space.
Indexes in MySQL consume additional storage space because they store a separate structure with pointers to the data.
Q3
True / FalseIn MySQL, indexes can be created on multiple columns of a table.
MySQL supports multi-column indexes, which can be used to optimize queries that filter on more than one column.
Q4
True / FalseIn MySQL, a UNIQUE index allows duplicate values in the indexed column.
A UNIQUE index in MySQL ensures that all values in the indexed column are distinct, preventing duplicates.
Q5
True / FalseIn MySQL, a primary key automatically creates an index on the primary key column(s).
When a primary key is defined in MySQL, it automatically creates a unique index on the primary key column(s) to enforce uniqueness and speed up lookups.
Q6
True / FalseIn MySQL, using an index always improves the performance of SELECT queries.
While indexes can significantly speed up SELECT queries, there are cases where they may not improve performance, such as when the query selects a large portion of the table or the index is not used efficiently.
Q7
True / FalseIn MySQL, the InnoDB storage engine supports full-text indexing for full-text search.
The InnoDB storage engine in MySQL supports full-text indexing, which allows for efficient full-text search operations on text columns.
Q8
True / FalseIn MySQL, creating too many indexes on a table can slow down INSERT, UPDATE, and DELETE operations.
While indexes speed up read operations, they can slow down write operations because MySQL needs to update the index data structures whenever the data changes.
Q9
True / FalseIn MySQL, a composite index is an index on multiple columns and is only used when all columns in the index are specified in the query's WHERE clause.
A composite index in MySQL can be used even if only the leftmost prefix columns are specified in the WHERE clause, not necessarily all columns in the index.
Q10
True / FalseIn MySQL, the ANALYZE TABLE statement can be used to update index statistics, which helps the optimizer make better decisions.
The ANALYZE TABLE statement in MySQL updates index statistics, which can help the query optimizer make more informed choices about how to execute queries.