Data Structures & Algorithms MCQs

5 practice MCQs on this page Page 4 of 4

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

ProgrammingData Structures & Algorithms PPSCID: LTP-7715

A queue data structure follows which order of access?

  1. ALast In, First Out (LIFO)
  2. BLargest first
  3. CRandom access only
  4. DFirst In, First Out (FIFO) ✓ Correct answer
ProgrammingData Structures & Algorithms PPSCID: LTP-7716

An array stores its elements in:

  1. AContiguous memory locations ✓ Correct answer
  2. BRandom files on disk
  3. CSeparate databases
  4. DPrinted pages
ProgrammingData Structures & Algorithms PPSCID: LTP-7717

Binary search can only be applied to data that is:

  1. AUnsorted
  2. BSorted ✓ Correct answer
  3. CEncrypted
  4. DPrinted
ProgrammingData Structures & Algorithms PPSCID: LTP-7718

In a linked list, each element is stored in a node that contains:

  1. AOnly a picture
  2. BOnly a password
  3. CData and a pointer to the next node ✓ Correct answer
  4. DA whole database
ProgrammingData Structures & Algorithms PPSCID: LTP-7719

In a binary search tree, values smaller than a node are stored in its:

  1. ARight subtree
  2. BRoot only
  3. CParent only
  4. DLeft subtree ✓ Correct answer

Practice these MCQs interactively