Arrays and Linked Lists - Applications - Competitive Exam Level

Download Q&A
Q. In a singly linked list, how do you insert a new node at the beginning?
  • A. Create a new node and point it to the head
  • B. Point the head to the new node
  • C. Insert at the end
  • D. None of the above
Q. What is the time complexity of bubble sort in the worst case?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of inserting an element at the end of a dynamic array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. Which data structure is more efficient for implementing a queue?
  • A. Array
  • B. Linked List
  • C. Stack
  • D. Tree
Showing 1 to 4 of 4 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely