Arrays and Linked Lists - Competitive Exam Level

Download Q&A
Q. In a queue, which operation is performed in constant time?
  • A. Enqueue
  • B. Dequeue
  • C. Peek
  • D. All of the above
Q. What is the time complexity of binary search on a sorted array?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. Which of the following data structures allows for dynamic resizing?
  • A. Array
  • B. Linked List
  • C. Stack
  • D. Queue
Q. Which of the following is a characteristic of a binary tree?
  • A. Each node has at most two children
  • B. Nodes are stored in a linear fashion
  • C. All nodes have the same number of children
  • D. It is always balanced
Q. Which of the following is NOT a characteristic of a stack?
  • A. LIFO order
  • B. Dynamic size
  • C. Random access
  • D. Push and pop operations
Q. Which sorting algorithm has the best average-case time complexity?
  • A. Bubble Sort
  • B. Insertion Sort
  • C. Merge Sort
  • D. Selection Sort
Showing 1 to 6 of 6 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely