Computer Science & IT

Download Q&A
Q. What is the time complexity of searching for an element in a balanced AVL tree?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of searching for an element 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 searching for an element in a binary search tree (BST) in the worst case?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of searching for an element in 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 searching for an element in a hash table?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of searching for an element in a queue implemented using an array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of searching for an element in a Red-Black tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of searching for an element in a sorted array using binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of searching for an element in a stack?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of searching for 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 searching for an element in an unsorted array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of searching for an element in an unsorted linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of sorting an array using QuickSort on average?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of the best-case scenario for Insertion Sort?
  • A. O(n log n)
  • B. O(n^2)
  • C. O(n)
  • D. O(log n)
Q. What is the time complexity of the best-case scenario for Quick Sort?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of the binary search algorithm?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of the bubble sort algorithm 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 the bubble sort algorithm?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of the depth-first search (DFS) algorithm in a graph?
  • A. O(V + E)
  • B. O(V)
  • C. O(E)
  • D. O(V^2)
Q. What is the time complexity of the dynamic programming solution for the 0/1 Knapsack problem?
  • A. O(n)
  • B. O(n^2)
  • C. O(n * W)
  • D. O(2^n)
Q. What is the time complexity of the dynamic programming solution for the edit distance problem?
  • A. O(n*m)
  • B. O(n^2)
  • C. O(n log n)
  • D. O(2^n)
Q. What is the time complexity of the dynamic programming solution for the Fibonacci sequence?
  • A. O(n)
  • B. O(n^2)
  • C. O(2^n)
  • D. O(log n)
Q. What is the time complexity of the Fibonacci sequence using dynamic programming?
  • A. O(2^n)
  • B. O(n)
  • C. O(n log n)
  • D. O(n^2)
Q. What is the time complexity of the inorder 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 the K-means algorithm?
  • A. O(n^2)
  • B. O(nk)
  • C. O(n log n)
  • D. O(n^3)
Q. What is the time complexity of the longest common subsequence problem using dynamic programming?
  • A. O(n)
  • B. O(m)
  • C. O(n*m)
  • D. O(n^2)
Q. What is the time complexity of the longest increasing subsequence problem using dynamic programming?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(2^n)
Q. What is the time complexity of the Merge operation in Merge Sort?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of the partitioning step in Quick Sort?
  • A. O(n)
  • B. O(n log n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of the quicksort algorithm in the average case?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Showing 1921 to 1950 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