Computer Science & IT

Download Q&A
Q. What is the time complexity for deleting a node 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 for deleting an element from 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 for deleting an element from an AVL tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity for searching an element in a balanced AVL tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity for searching 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 for searching 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 a binary search algorithm on a sorted array?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of a binary search on a sorted array?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of a breadth-first search (BFS) in a graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the time complexity of a breadth-first search (BFS) on a graph with V vertices and E edges?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V * E)
Q. What is the time complexity of a breadth-first search (BFS) on a graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the time complexity of a 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 a depth-first search (DFS) in a graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the time complexity of a depth-first search (DFS) on a graph with V vertices and E edges?
  • A. O(V + E)
  • B. O(V)
  • C. O(E)
  • D. O(V^2)
Q. What is the time complexity of a depth-first search (DFS) on a graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V * E)
Q. What is the time complexity of a depth-first search (DFS) on a tree?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(n log n)
Q. What is the time complexity of a level 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 a linear search algorithm?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of a linear search in an array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of a linear search in an unsorted array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of a queue's enqueue operation in a linked list implementation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of a queue's enqueue operation using 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 a queue's enqueue operation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of a recursive function that divides the problem size by half at each step?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(2^n)
Q. What is the time complexity of accessing an element in a linked list by index?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of accessing an element in a queue implemented using a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of accessing an element in a queue?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of accessing an element in a stack?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the time complexity of accessing an element in an array by index?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the time complexity of accessing an element in an array?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Showing 1771 to 1800 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