--:--









Quiz for Views, Indexes, and Constraints

Course: Database Management System | Subject: Unit 3 | Topic: SQL and Advanced SQL



Logo

Q1: What is a view in SQL?

Logo

Q2: Which command creates a view?

Logo

Q3: What is an index in a database?

Logo

Q4: Which SQL command creates an index?

Logo

Q5: Which of the following is a type of index?

Logo

Q6: What is a PRIMARY KEY constraint?

Logo

Q7: Which constraint prevents duplicate values?

Logo

Q8: Which constraint ensures a column cannot have NULL values?

Logo

Q9: What is a FOREIGN KEY constraint?

Logo

Q10: Which command removes a view?

Logo

Q11: Can views be updated?

Logo

Q12: Which index type is best for exact match queries?

Logo

Q13: What does the CHECK constraint do?

Logo

Q14: Which constraint is automatically created with PRIMARY KEY?

Logo

Q15: Which SQL clause is used to enforce constraints?

Logo

Q16: What is a clustered index?

Logo

Q17: Which index type is efficient for low cardinality columns?

Logo

Q18: Which statement about views is TRUE?

Logo

Q19: Which constraint enforces referential integrity?

Are you ready to start test? Set your time limit