Computer Science & IT

Download Q&A
Q. What is the time complexity of accessing the top element of a stack?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of an 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 appending an element to 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 balancing an AVL tree after a deletion?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of balancing an AVL tree after an insertion?
  • A. O(log n)
  • B. O(n)
  • C. O(1)
  • D. O(n log n)
Q. What is the time complexity of BFS in a graph with V vertices and E edges?
  • A. O(V + E)
  • B. O(V^2)
  • C. O(E log V)
  • D. O(V log V)
Q. What is the time complexity of BFS in terms of the number of vertices V and edges E?
  • A. O(V + E)
  • B. O(V^2)
  • C. O(E log V)
  • D. O(V log V)
Q. What is the time complexity of binary search in 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 binary search 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 binary search in the best case scenario?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the time complexity of binary search in the worst case scenario?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
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. What is the time complexity of binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of Breadth-First Search (BFS) in a graph with V vertices and E edges?
  • A. O(V + E)
  • B. O(V)
  • C. O(E)
  • D. O(V * E)
Q. What is the time complexity of breadth-first search (BFS) in a graph?
  • A. O(V + E)
  • B. O(V)
  • C. O(E)
  • D. O(V^2)
Q. What is the time complexity of breadth-first search (BFS) on a graph?
  • A. O(V + E)
  • B. O(V)
  • C. O(E)
  • D. O(V^2)
Q. What is the time complexity of bubble sort in the average case?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
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 checking if a stack is empty?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of clearing all elements from a queue?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of clearing all elements from a stack?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of deleting a node from 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 deleting a node from a linked list when you have a pointer to that node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of deleting a node 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 of deleting a node from a singly linked list given a pointer to that node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of deleting a node 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 of deleting a node in 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 deleting an element from a binary search tree (BST) 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 deleting an element from a doubly linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of deleting an element from a linked list given a pointer to that node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Showing 1801 to 1830 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