Computer Science & IT

Download Q&A
Q. What is the space complexity of DFS using recursion?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Q. What is the space complexity of Dijkstra's algorithm using an adjacency list?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the space complexity of Dijkstra's algorithm when using a priority queue?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V log V)
Q. What is the space complexity of Dijkstra's algorithm when using an adjacency list representation of the graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the space complexity of Dijkstra's algorithm when using an adjacency list?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the space complexity of Heap Sort?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of Merge Sort?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of Quick Sort in the average case?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of Quick Sort in the worst case?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of recursive tree traversals?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of storing a linked list with n nodes?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of the binary search algorithm?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of the dynamic programming solution for the 0/1 Knapsack problem?
  • A. O(1)
  • B. O(n)
  • C. O(w)
  • D. O(n*w)
Q. What is the space complexity of the dynamic programming solution for the 0/1 Knapsack problem using a 2D array?
  • A. O(n)
  • B. O(w)
  • C. O(n * w)
  • D. O(1)
Q. What is the space complexity of the dynamic programming solution for the edit distance problem?
  • A. O(n)
  • B. O(m)
  • C. O(n * m)
  • D. O(1)
Q. What is the space complexity of the dynamic programming solution for the Fibonacci sequence using memoization?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of the dynamic programming solution for the Fibonacci sequence?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of the dynamic programming solution for the Longest Increasing Subsequence problem?
  • A. O(n)
  • B. O(n^2)
  • C. O(log n)
  • D. O(1)
Q. What is the space complexity of the dynamic programming solution for the Longest Common Subsequence problem?
  • A. O(m + n)
  • B. O(m * n)
  • C. O(m)
  • D. O(n)
Q. What is the space complexity of the iterative binary search algorithm?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of the iterative implementation of binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of the iterative version of binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of the recursive implementation of inorder traversal?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the subnet mask for a Class C IP address with 30 usable hosts?
  • A. 255.255.255.252
  • B. 255.255.255.240
  • C. 255.255.255.248
  • D. 255.255.255.254
Q. What is the subnet mask for a network that needs to support 500 hosts?
  • A. 255.255.255.0
  • B. 255.255.254.0
  • C. 255.255.255.128
  • D. 255.255.255.192
Q. What is the subnet mask for a network that requires 30 usable IP addresses?
  • A. 255.255.255.224
  • B. 255.255.255.240
  • C. 255.255.255.192
  • D. 255.255.255.248
Q. What is the subnet mask for a network that requires at least 500 usable IP addresses?
  • A. 255.255.255.0
  • B. 255.255.254.0
  • C. 255.255.255.128
  • D. 255.255.255.192
Q. What is the subnet mask for a network with 30 usable IP addresses?
  • A. 255.255.255.252
  • B. 255.255.255.248
  • C. 255.255.255.240
  • D. 255.255.255.224
Q. What is the subnet mask for the IP address 172.16.5.10 if it is part of a /20 network?
  • A. 255.255.240.0
  • B. 255.255.255.0
  • C. 255.255.0.0
  • D. 255.255.255.240
Q. What is the time complexity for deleting a node in a Red-Black tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Showing 1741 to 1770 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