Databases & DBMS MCQs

20 practice MCQs on this page Page 2 of 16

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

Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-428

Which of the following is a NoSQL database?

  1. AMySQL
  2. BMicrosoft Access
  3. COracle Database
  4. DMongoDB ✓ Correct answer
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-451

What is SQL?

  1. AA program used to print documents
  2. BThe language used to work with databases ✓ Correct answer
  3. CA type of computer memory
  4. DA cable that connects computers together
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-474

In a database, what is a view?

  1. AA password used to open a database
  2. BA list of all the tables in a database
  3. CA virtual table made from the result of a query ✓ Correct answer
  4. DA table that stores data on a disk
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-497

In a database, what is SQL mainly used for?

  1. ATo draw pictures and charts.
  2. BTo print documents from the database.
  3. CTo protect the computer from viruses.
  4. DTo ask the database for data and to change the data in it. ✓ Correct answer
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-520

Which of the following is a relational database?

  1. AMongoDB
  2. BOracle ✓ Correct answer
  3. CMicrosoft Excel
  4. DMicrosoft Word
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-566

In a database, what does 'normalization' mean?

  1. ADeleting a table from the database
  2. BPrinting all the data in the database
  3. COrganising data in tables to reduce repetition and keep it correct ✓ Correct answer
  4. DHiding data so that no one can see it
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-589

A student asks a database to show the names of all pupils whose marks are above 80. What is this request called in a database?

  1. AA table that stores data.
  2. BA request for data from a database. ✓ Correct answer
  3. CA field that identifies each record.
  4. DA program that prints reports.
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-612

In a database, what does the term 'data integrity' mean?

  1. AThe data is stored on two computers.
  2. BThe data is printed every day.
  3. CThe data is correct and complete. ✓ Correct answer
  4. DThe data is kept secret with a password.
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-635

What does 'DDL' stand for in database work?

  1. AData Definition Language. ✓ Correct answer
  2. BData Direct Language.
  3. CDatabase Design Language.
  4. DData Display Language.
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-658

Which language is used to get information from a database?

  1. AHTML.
  2. BSQL. ✓ Correct answer
  3. CPython.
  4. DC++.
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-681

In a database, what is a 'form'?

  1. AA printed book.
  2. BA computer virus.
  3. CA screen used to enter data into a database. ✓ Correct answer
  4. DA type of keyboard.
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-704

In a database, what does DML do?

  1. AIt creates and changes the structure of tables
  2. BIt adds, changes and deletes the data in tables ✓ Correct answer
  3. CIt gives users permission to use the database
  4. DIt designs web pages
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-727

Which SQL command adds a new row to a table in a database?

  1. ASELECT
  2. BDELETE
  3. CUPDATE
  4. DINSERT ✓ Correct answer
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-750

Which SQL command removes a row from a table in a database?

  1. AINSERT.
  2. BDELETE. ✓ Correct answer
  3. CUPDATE.
  4. DSELECT.
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-773

In computing, what is a 'database'?

  1. AA single printed page
  2. BA type of printer
  3. CA kind of computer virus
  4. DA collection of data stored in an organised way ✓ Correct answer
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-796

In a database table, what is a 'column'?

  1. AA single row of data
  2. BA printed report
  3. CA database password
  4. DA vertical list of one kind of data ✓ Correct answer
Computer ScienceDatabases & DBMS CSS PPSC FPSC NTSID: CMP-819

In a database, what is an 'index' used for?

  1. ATo delete a whole database
  2. BTo find rows in a table more quickly ✓ Correct answer
  3. CTo print a table on paper
  4. DTo change the colour of a table
Computer ScienceDatabases & DBMS PPSCID: PPP-055

A collection of well-organized data is called?

  1. AField
  2. BFile
  3. CDatabase ✓ Correct answer
  4. DRing
Computer ScienceDatabases & DBMS PPSCID: PPP-144

Primary key is a?

  1. AUniquely identifies each record
  2. BAuto number is example of key
  3. Ccannot be repeated
  4. DAll of these ✓ Correct answer
Computer ScienceDatabases & DBMS PPSCID: PPP-145

Foreign key is a?

  1. AA column containing the primary key of another table ✓ Correct answer
  2. BUse to design data type
  3. Cdefine null status
  4. DA key used for encryption

Practice these MCQs interactively