Question 1
What is an index in SQL?
- A data structure that stores values in sorted order for fast retrieval
- A temporary table used for intermediate data processing
- A constraint that ensures data integrity
- A function that calculates aggregate values
- A data store that stores values in a sorted mannor for fast retrieval
Question 2
Which SQL statement is used to create an index?
- CREATE INDEX
- ADD INDEX
- INDEX TABLE
- SET INDEX
- MAKE INDEX
Question 3
What is the purpose of an index in SQL?
- To enforce data integrity constraints
- To store intermediate query results
- To improve the speed of data retrieval operations
- To perform calculations on aggregate data
- To define the structure of a table
Question 4
Which type of index is automatically created by the database management system to enforce the PRIMARY KEY constraint?
- Clustered index
- Non-clustered index
- Unique index
- Composite index
- Normal index
Question 5
What is a transaction in SQL?
- A set of operations that are executed as a single unit of work
- A temporary storage area used for intermediate data processing
- A constraint that ensures data integrity
- A function that calculates aggregate values
- A series of queries run on a dataset.
Question 6
Which SQL statement is used to begin a transaction?
- BEGIN TRANSACTION
- START TRANSACTION
- INITIATE TRANSACTION
- TRANSACTION BEGIN
- NEW TRANSACTION
Question 7
What is the purpose of a rollback in SQL?
- To commit the changes made by a transaction
- To save the changes made by a transaction
- To undo the changes made by a transaction
- To finalize the changes made by a transaction
- To back up the database
Question 8
Which SQL statement is used to commit a transaction?
- COMMIT
- END TRANSACTION
- SAVE TRANSACTION
- FINALIZE TRANSACTION
- COMPLETE
Question 9
What is the purpose of a savepoint in SQL transactions?
- To rollback the entire transaction
- To mark a point within a transaction to which you can later roll back
- To commit the changes made by a transaction
- To finalize the changes made by a transaction
- To automatically save the database state
Question 10
Which type of index does not alter the physical order of the table's rows and is typically faster to update than a clustered index?
- Clustered index
- Non-clustered index
- Unique index
- Composite index
- Clusted index
Question 11
Is a composite index created on single column?
- Yes
- No
- Sometimes
- Maybe
- I don't know
Question 12
What is the function of Data Definition Language (DDL)?
- Data retrieval
- Data modification
- Data deletion
- Data structure definition
- Data analysis
Question 13
What is the primary function of Data Manipulation Language (DML)?
- Database structure definition
- Data retrieval and modification
- User access control
- Data backup and recovery
- Query optimization
Question 14
What property is not part of the ACID properties?
- Atomicity
- Consistency
- Isolation
- Durability
- Velocity
Question 15
What is Durability in SQL?
- Atomicity
- Guarantee that transaction changes are permanent
- Changes made must maintain data integrity
- Ensures that concurrent transactions do not interfere with each other
- Database must handle partial failures