Q1
True / FalseMySQL supports only one type of index: the primary index.
MySQL supports several types of indexes, including primary, unique, full-text, and spatial indexes.
Q2
True / FalseIn MySQL, a unique index does not allow duplicate values in the indexed column.
A unique index ensures that all values in the indexed column(s) are distinct, preventing duplicate entries.
Q3
True / FalseMySQL automatically creates an index on primary key columns.
When a primary key is defined, MySQL automatically creates a unique index on the primary key columns.
Q4
True / FalseMySQL full-text indexes can only be created on CHAR, VARCHAR, and TEXT columns.
Full-text indexes in MySQL are designed for text search and can only be created on CHAR, VARCHAR, and TEXT columns.
Q5
True / FalseIn MySQL, you can create a spatial index on any data type.
Spatial indexes in MySQL can only be created on spatial data types like POINT, GEOMETRY, etc.
Q6
True / FalseMySQL supports the creation of a clustered index.
MySQL does not support clustered indexes as a separate index type. Instead, the InnoDB storage engine implements the primary key as a clustered index.
Q7
True / FalseMySQL allows the creation of multiple indexes on the same column.
MySQL does not allow multiple indexes of the same type on the same column, though you can have different types of indexes (e.g., a unique index and a full-text index) on the same column.
Q8
True / FalseComposite indexes in MySQL can improve performance for queries that use any of the indexed columns.
Composite indexes improve performance for queries that use the leftmost prefix of the indexed columns. Queries must start with the first column in the composite index to benefit from it.
Q9
True / FalseIn MySQL, a spatial index can be used with the MEMORY storage engine.
Spatial indexes in MySQL are only supported by the MyISAM and InnoDB storage engines, not the MEMORY storage engine.
Q10
True / FalseMySQL supports descending indexes, which can be created using the DESC keyword in the CREATE INDEX statement.
Starting with MySQL 8.0, descending indexes can be created using the DESC keyword in the CREATE INDEX statement, allowing for efficient sorting of data in descending order.