Databases & DBMS MCQs

20 practice MCQs on this page Page 11 of 16

Tap an option to check your answer — the correct answer and full explanation appear after you choose.

Computer ScienceDatabases & DBMS PPSCID: LTP-8300

Which key uniquely identifies each row in a relational database table?

  1. APrimary key ✓ Correct answer
  2. BForeign key
  3. CCandidate key
  4. DComposite key
Computer ScienceDatabases & DBMS PPSCID: LTP-8301

Which SQL statement is used to add a new row to a table?

  1. AUPDATE
  2. BINSERT ✓ Correct answer
  3. CADD
  4. DCREATE
Computer ScienceDatabases & DBMS PPSCID: LTP-8303

Which SQL statement retrieves data from a table?

  1. AINSERT
  2. BUPDATE
  3. CDELETE
  4. DSELECT ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8304

Which database process removes redundancy by organising data into related tables?

  1. ANormalization ✓ Correct answer
  2. BDenormalization
  3. CIndexing
  4. DClustering
Computer ScienceDatabases & DBMS PPSCID: LTP-8305

Which normal form requires that every column holds atomic values only?

  1. ASecond Normal Form
  2. BFirst Normal Form (1NF) ✓ Correct answer
  3. CThird Normal Form
  4. DBoyce-Codd Normal Form
Computer ScienceDatabases & DBMS PPSCID: LTP-8306

Which set of properties guarantees reliable database transactions?

  1. ACAP theorem
  2. BCRUD operations
  3. CACID properties ✓ Correct answer
  4. DBASE properties
Computer ScienceDatabases & DBMS PPSCID: LTP-8307

Which database model stores data in tables made of rows and columns?

  1. AHierarchical model
  2. BNetwork model
  3. CDocument model
  4. DRelational model ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8308

Which database structure speeds up searching by providing fast access to rows?

  1. AIndex ✓ Correct answer
  2. BView
  3. CTrigger
  4. DStored procedure
Computer ScienceDatabases & DBMS PPSCID: LTP-8405

Which SQL statement adds a new row to a table?

  1. ASELECT
  2. BINSERT ✓ Correct answer
  3. CUPDATE
  4. DDELETE
Computer ScienceDatabases & DBMS PPSCID: LTP-8407

Which SQL statement removes rows from a table?

  1. ADROP
  2. BTRUNCATE
  3. CUPDATE
  4. DDELETE ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8408

Which SQL statement creates a new table in a database?

  1. ACREATE TABLE ✓ Correct answer
  2. BALTER TABLE
  3. CDROP TABLE
  4. DSELECT
Computer ScienceDatabases & DBMS PPSCID: LTP-8409

Which normal form requires a table to be in 1NF with no partial dependency on a composite key?

  1. AFirst Normal Form
  2. BSecond Normal Form (2NF) ✓ Correct answer
  3. CThird Normal Form
  4. DBoyce-Codd Normal Form
Computer ScienceDatabases & DBMS PPSCID: LTP-8410

Which normal form removes transitive dependencies between non-key columns?

  1. AFirst Normal Form
  2. BSecond Normal Form
  3. CThird Normal Form (3NF) ✓ Correct answer
  4. DFourth Normal Form
Computer ScienceDatabases & DBMS PPSCID: LTP-8411

Which unit of database work must be completed fully or not at all?

  1. AQuery
  2. BView
  3. CIndex
  4. DTransaction ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8412

Which database object is a virtual table created from a saved query?

  1. AView ✓ Correct answer
  2. BIndex
  3. CTrigger
  4. DStored procedure
Computer ScienceDatabases & DBMS PPSCID: LTP-8413

Which problem means the same data is stored in several places and can become inconsistent?

  1. AData integrity
  2. BData redundancy ✓ Correct answer
  3. CData independence
  4. DData security
Computer ScienceDatabases & DBMS PPSCID: LTP-8414

Which model uses entities and relationships to design a database?

  1. ARelational model
  2. BHierarchical model
  3. CEntity-Relationship (ER) model ✓ Correct answer
  4. DNetwork model
Computer ScienceDatabases & DBMS PPSCID: LTP-8495

Which SQL statement permanently removes a table and its data?

  1. ADELETE
  2. BTRUNCATE
  3. CUPDATE
  4. DDROP TABLE ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8496

Which SQL statement changes the structure of an existing table?

  1. AALTER TABLE ✓ Correct answer
  2. BCREATE TABLE
  3. CDROP TABLE
  4. DSELECT
Computer ScienceDatabases & DBMS PPSCID: LTP-8497

Which SQL clause filters rows based on a condition?

  1. AORDER BY clause
  2. BWHERE clause ✓ Correct answer
  3. CGROUP BY clause
  4. DHAVING clause

Practice these MCQs interactively