Skip to content
GK24
GK QuizComputer Awareness

Computer Awareness Quiz: Databases and DBMS

  • 12 questions
  • 12 minutes
  • Difficulty: Medium
Start Quiz

About this quiz

This Computer Awareness quiz on Databases and DBMS puts 12 multiple-choice questions to you, the verified MCQs published with GK24's note on the topic, 1 of them asked in real previous-year papers. Every question carries a full explanation of why the correct option is right and why the other options are wrong, so you learn the fact behind the answer rather than the letter. Attempt it right after reading the note, keep to the timer, and use the explanations at the end to mark what needs another look. Sit it again before the exam as a quick revision of the topic.

Questions in this quiz

12 questions with answers and explanations

Q1.Computer AwarenessAsked in: Delhi · 7 Aug 2021, Shift 2Easy

Which of the following is the oldest database model?

  1. A.Hierarchical
  2. B.Object oriented
  3. C.Deductive
  4. D.Relational
Show answer
Correct answer: A. Hierarchical

The hierarchical model is the first data model used in commercial database software; IBM built its Information Management System on it in the 1960s for the Apollo programme.

Q2.Computer AwarenessMedium

Who proposed the relational model of databases?

  1. A.Charles Babbage
  2. B.Edgar Frank Codd
  3. C.Dennis Ritchie
  4. D.James Gosling
Show answer
Correct answer: B. Edgar Frank Codd

Codd, a British computer scientist working at IBM, set out the relational model in a paper published in 1970, proposing that all data be held in simple two-dimensional tables and joined by matching values rather than by fixed pointers.

Q5.Computer AwarenessMedium

Which SQL command removes all the rows of a table but keeps the table structure, and is classified as a DDL command?

  1. A.DELETE
  2. B.DROP
  3. C.TRUNCATE
  4. D.ERASE
Show answer
Correct answer: C. TRUNCATE

TRUNCATE empties a table in one operation, leaving the columns, data types and constraints in place so that the table can be filled again at once; because it changes the object rather than selected rows it is grouped with the Data Definition Language and it is much faster than deleting…

Q7.Computer AwarenessEasy

An attribute of one table that refers to the primary key of another table is called a:

  1. A.Candidate key
  2. B.Foreign key
  3. C.Composite key
  4. D.Secondary index
Show answer
Correct answer: B. Foreign key

A foreign key is the column that stores values belonging to the primary key of another table, so a marks table can carry the roll number of a student table and the two tables can then be joined; the database uses it to enforce referential integrity, refusing a value that…

Q10.Computer AwarenessHard

Removing partial dependency of a non-key attribute on part of a composite primary key brings a table to which normal form?

  1. A.First normal form
  2. B.Second normal form
  3. C.Third normal form
  4. D.Boyce-Codd normal form
Show answer
Correct answer: B. Second normal form

A table is in second normal form when it is already in first normal form and no non-key attribute depends on only a part of a composite primary key; such a partial dependency is removed by moving that attribute into a table of its own.

Q11.Computer AwarenessMedium

Which of the following is a NoSQL database?

  1. A.Oracle
  2. B.MySQL
  3. C.MongoDB
  4. D.Microsoft SQL Server
Show answer
Correct answer: C. MongoDB

MongoDB stores data as documents in a flexible, JSON-like form instead of as rows in tables with a fixed set of columns, and it is queried through its own interface rather than mainly through SQL, which makes it the standard example of a NoSQL database in exam papers.

View all quizzes