SQL MCQs — Computer Science

4 practice MCQs

The correct answer is marked on every question, with its full explanation.

Computer ScienceSQL CSS PPSC FPSC NTSID: NWG-019

What is SQL mainly used for?

  1. ATo manage and ask questions of data stored in a database. ✓ Correct answer
  2. BTo design the physical parts of a computer.
  3. CTo remove viruses from a computer.
  4. DTo connect a computer to the Internet.
Computer ScienceSQL CSS PPSC FPSC NTSID: CMP-026

Which SQL command is used to get data from a table?

  1. ASELECT ✓ Correct answer
  2. BDELETE
  3. CINSERT
  4. DUPDATE
Computer ScienceSQL CSS PPSC FPSC NTSID: CMP-047

Which SQL command is used to add a new row of data into a table?

  1. ASELECT
  2. BINSERT ✓ Correct answer
  3. CDELETE
  4. DUPDATE
Computer ScienceSQL CSS PPSC FPSC NTSID: CMP-070

Which SQL clause is used to filter the rows returned by a SELECT statement?

  1. AORDER BY
  2. BFROM
  3. CGROUP BY
  4. DWHERE ✓ Correct answer

Practise these MCQs interactively →

← Computer Science MCQs