Programming & DS

Download Q&A
Q. Which of the following problems can be solved using recursion?
  • A. Finding the maximum element in an array
  • B. Calculating the factorial of a number
  • C. Sorting an array
  • D. All of the above
Q. Which of the following statements is true about BFS?
  • A. BFS can be implemented using a stack.
  • B. BFS is not suitable for finding shortest paths.
  • C. BFS explores nodes level by level.
  • D. BFS is faster than DFS in all cases.
Q. Which of the following statements is true about the Bellman-Ford algorithm?
  • A. It can handle negative weight edges
  • B. It is faster than Dijkstra's algorithm for all graphs
  • C. It only works on directed graphs
  • D. It cannot detect negative weight cycles
Q. Which operator is used to access the value at the address stored in a pointer?
  • A. &
  • B. *
  • C. ->
  • D. []
Q. Which traversal method can be used to find the shortest path in an unweighted graph?
  • A. DFS
  • B. BFS
  • C. Dijkstra's Algorithm
  • D. A* Search
Q. Which traversal would you use to delete a binary tree?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Level-order
Showing 61 to 66 of 66 (3 Pages)
Soulshift Feedback ×

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

Not likely Very likely