Arrays and Linked Lists - Applications - Numerical Applications

Download Q&A
Q. In a queue implemented using an array, what happens when the array is full?
  • A. Overflow error
  • B. Underflow error
  • C. Elements are overwritten
  • D. Queue shrinks
Q. In a queue implemented using an array, what is the time complexity of enqueue operation in the worst case?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of deleting an element from a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the worst-case time complexity of insertion in a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the worst-case time complexity of insertion in a singly linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. Which data structure is used to implement recursion?
  • A. Array
  • B. Stack
  • C. Queue
  • D. Linked List
Q. Which sorting algorithm is best suited for linked lists?
  • A. Quick sort
  • B. Merge sort
  • C. Bubble sort
  • D. Heap sort
Showing 1 to 7 of 7 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely