Pro Coder Quiz

CapDev Harbinger Group

ProCoder Quiz of the Month - May 2023

Top 3 Winners:
Vaibhav Meena, Uday Salunke and Sheetal Khandelwal

Congratulations!!

Quiz Questions and answers are below:

Q1. Which term describes a collection of related data that is stored in a structured format?

  1. Spreadsheet
  2. File
  3. Database
  4. Table

Ans: Option C

Q2. In a relational database, what is a primary key?

  1. A field that uniquely identifies a record in a table
  2. A field that contains numeric values only
  3. A field that is used for sorting data
  4. A field that is not indexed

Ans: Option A

Q3. What is the purpose of a foreign key in a relational database?

  1. To ensure data integrity and enforce referential integrity
  2. To speed up database queries
  3. To encrypt sensitive data
  4. To provide a backup copy of the database

Ans: Option A

Q4. Which type of database model represents data in a hierarchical structure?

  1. Relational model
  2. Object-oriented model
  3. Hierarchical model
  4. Network model

Ans: Option C

Q5. Which SQL statement is used to retrieve data from a database?

  1. INSERT
  2. DELETEi
  3. UPDATE
  4. SELECT

Ans:Option D

Q6. Which SQL clause is used to filter data in a SELECT statement?

  1. ORDER BY
  2. GROUP BY
  3. WHERE
  4. JOIN

Ans: Option C

Q7. Which normal form eliminates data redundancy by removing partial dependencies?

  1. First normal form (1NF)
  2. Second normal form (2NF)
  3. Third normal form (3NF)
  4. Boyce-Codd normal form (BCNF)

Ans: Option C

Q8. Which database model is best suited for representing complex relationships and data with varying structures?

  1. Relational model
  2. Object-oriented model
  3. Hierarchical model
  4. NoSQL model

Ans: Option D

Q9. What is the purpose of a database index?

  1. To enforce data integrity
  2. To store large objects, such as images or documents
  3. To improve query performance
  4. To encrypt sensitive data

Ans: Option C

Q10. Which of the following is not a valid data type in most relational databases?

  1. Integer
  2. Booleani
  3. Array
  4. Date

Ans: Option C

Q11. Which SQL statement is used to alter or modify data in a database?

  1. ALTER
  2. INSERT
  3. SELECT
  4. UPDATE

Ans: Option D

Q12. What does ACID stand for in the context of database transactions?

  1. Atomicity, Consistency, Isolation, Durability
  2. Availability, Concurrency, Integrity, Durability
  3. Association, Compatibility, Integration, Durability
  4. Authentication, Compression, Integrity, Durability

Ans: Option A

Q13. Which type of database model allows for the storage and retrieval of complex objects and their relationships?

  1. Relational model
  2. Object-oriented model
  3. Hierarchical model
  4. NoSQL model

Ans: Option B

Q14. What is the purpose of a view in a database?

  1. To store temporary data
  2. To define a subset of data from one or more tables
  3. To enforce referential integrity
  4. To create backups of the database

Ans: Option B

Q15. Which of the following is not a valid SQL aggregate function?

  1. COUNT
  2. AVG
  3. MAX
  4. ORDER

Ans: Option D


Last modified: Wednesday, 14 June 2023, 12:06 PM