Databases & DBMS MCQs

20 practice MCQs on this page Page 10 of 16

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

Computer ScienceDatabases & DBMS PPSCID: LTP-8096

Which group of SQL commands, including INSERT, UPDATE and DELETE, is used to change the data stored in a database?

  1. AData Definition Language (DDL)
  2. BData Manipulation Language (DML) ✓ Correct answer
  3. CData Control Language (DCL)
  4. DTransaction Control Language (TCL)
Computer ScienceDatabases & DBMS PPSCID: LTP-8097

Which SQL statement is used to retrieve data from one or more tables in a database?

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

Which SQL operation combines rows from two or more tables based on a related column between them?

  1. AUNION
  2. BGROUP BY
  3. CORDER BY
  4. DJOIN ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8099

Which database structure speeds up searching by allowing the system to find rows quickly without scanning the whole table?

  1. AView
  2. BTrigger
  3. CIndex ✓ Correct answer
  4. DSchema
Computer ScienceDatabases & DBMS PPSCID: LTP-8100

Which set of four properties — Atomicity, Consistency, Isolation and Durability — must a database transaction guarantee?

  1. ABASE
  2. BACID ✓ Correct answer
  3. CCRUD
  4. DOLAP
Computer ScienceDatabases & DBMS PPSCID: LTP-8101

In an entity-relationship model, what is a real-world object or thing about which data is stored, such as a student or an employee, called?

  1. AEntity ✓ Correct answer
  2. BAttribute
  3. CRelationship
  4. DKey
Computer ScienceDatabases & DBMS PPSCID: LTP-8102

In an entity-relationship model, what is a property or characteristic of an entity, such as a student's name or age, called?

  1. AEntity
  2. BRelationship
  3. CTuple
  4. DAttribute ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8103

Which diagram shows entities, their attributes and the relationships between them in a database design?

  1. AFlowchart
  2. BUse case diagram
  3. CEntity-Relationship diagram ✓ Correct answer
  4. DClass diagram
Computer ScienceDatabases & DBMS PPSCID: LTP-8104

Which central store holds definitions and descriptions of the data elements, tables and fields in a database?

  1. AData warehouse
  2. BData dictionary ✓ Correct answer
  3. CData mart
  4. DData lake
Computer ScienceDatabases & DBMS PPSCID: LTP-8198

Which type of database is designed for unstructured or semi-structured data and does not use the traditional table structure?

  1. ANoSQL database ✓ Correct answer
  2. BRelational database
  3. CHierarchical database
  4. DNetwork database
Computer ScienceDatabases & DBMS PPSCID: LTP-8199

Which of the following is a popular document-oriented NoSQL database?

  1. AMySQL
  2. BOracle
  3. CPostgreSQL
  4. DMongoDB ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8200

Which commercial relational database management system is developed by the Oracle Corporation?

  1. AMicrosoft Access
  2. BSQLite
  3. COracle Database ✓ Correct answer
  4. DMariaDB
Computer ScienceDatabases & DBMS PPSCID: LTP-8201

Which large central store holds historical data from many sources, organised for reporting and analysis rather than daily transactions?

  1. AData mart
  2. BData warehouse ✓ Correct answer
  3. COperational database
  4. DData lake
Computer ScienceDatabases & DBMS PPSCID: LTP-8202

Which saved set of SQL statements is stored in the database and can be executed by calling its name?

  1. AStored procedure ✓ Correct answer
  2. BTrigger
  3. CView
  4. DCursor
Computer ScienceDatabases & DBMS PPSCID: LTP-8203

Which database object automatically runs a set of actions when a specified event, such as an INSERT, occurs on a table?

  1. AView
  2. BIndex
  3. CProcedure
  4. DTrigger ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8204

Which virtual table is created by a query and shows data from one or more real tables without storing the data itself?

  1. AIndex
  2. BTrigger
  3. CView ✓ Correct answer
  4. DSchema
Computer ScienceDatabases & DBMS PPSCID: LTP-8205

Which term describes the overall structure and organisation of a database, including its tables, fields and relationships?

  1. AInstance
  2. BSchema ✓ Correct answer
  3. CTuple
  4. DDomain
Computer ScienceDatabases & DBMS PPSCID: LTP-8206

Which key is a field, or combination of fields, that could uniquely identify each record in a table?

  1. ACandidate key ✓ Correct answer
  2. BPrimary key
  3. CForeign key
  4. DSuper key
Computer ScienceDatabases & DBMS PPSCID: LTP-8207

In a relational database table, what is a single row, representing one record, called?

  1. AAttribute
  2. BDomain
  3. CRelation
  4. DTuple ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: LTP-8299

Which software manages databases and lets users create, read, update and delete data?

  1. AOperating system
  2. BCompiler
  3. CWeb server
  4. DDatabase Management System (DBMS) ✓ Correct answer

Practice these MCQs interactively