Back To Lesson

Quiz: SQL, MySQL, NoSQL, and Databases

Quiz Instructions:

  • Each question is followed by multiple-choice answers (A, B, C, D, and sometimes E).
  • Carefully read each question and all answer options before selecting the best answer.
  • Choose the option that most accurately aligns with the key concepts or information provided.

Question 1: What is the primary role of a database in a web application?

Question 2: Which of the following is a key benefit of using databases in modern applications?

Question 3: What is a key feature of relational databases (SQL)?

Question 4: Which of the following is an example of a NoSQL database?

Question 5: What does the PRIMARY KEY constraint ensure in a relational database?

Question 6: In NoSQL databases, what is a common use case for key-value stores?

Question 7: Which of the following SQL queries retrieves all rows from a table named employees?

Question 8: Which feature makes NoSQL databases more flexible than SQL databases?

Question 9: What is the purpose of normalization in relational databases?

Question 10: Which of the following is an example of a MongoDB query to find documents in a collection named users where the field age is greater than 25?

Question 11: Which type of relationship is represented by a foreign key in a relational database?

Question 12: Which of the following is an example of a graph database?

Question 13: What is the best method to prevent SQL injection attacks?