Computer Science & IT

Download Q&A
Q. What is the time complexity of enqueuing an element in a queue implemented with a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of finding the height of a binary tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of finding the maximum element in a binary heap?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of finding the maximum element in a binary search tree?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of finding the maximum element in a binary search tree (BST)?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of finding the maximum element in a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of finding the maximum element in an unsorted array?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of finding the minimum element in a stack that supports this operation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of finding the shortest path in an unweighted graph using BFS?
  • A. O(n)
  • B. O(n^2)
  • C. O(m + n)
  • D. O(log n)
Q. What is the time complexity of Heap 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 implementing a queue using two stacks?
  • A. O(1) for enqueue, O(n) for dequeue
  • B. O(n) for enqueue, O(1) for dequeue
  • C. O(n) for both
  • D. O(1) for both
Q. What is the time complexity of in-order traversal of a binary tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting a node in a balanced binary search tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting a node in a binary search tree in the average case?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting a node in an AVL tree?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of inserting an element at a specific index in an array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of inserting an element at the beginning of a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of inserting an element at the beginning of a singly linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n 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. What is the time complexity of inserting an element at the end of a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of inserting an element at the end of a singly linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of inserting an element in a balanced binary search tree?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of inserting an element in a binary search tree in the average case?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting an element in an AVL tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting an element into a binary search tree (BST) in the average case?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of inserting an element into a binary search tree in the average case?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting an element into a max-heap?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of inserting an element into a priority queue implemented with a binary heap?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of inserting an element into a Red-Black tree?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of inserting an element into a stack implemented using an array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Showing 1861 to 1890 of 3237 (108 Pages)
Soulshift Feedback ×

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

Not likely Very likely