Computer Science & IT

Download Q&A
Q. Which traversal method is guaranteed to find the shortest path in an unweighted graph?
  • A. Depth-First Search
  • B. Breadth-First Search
  • C. Dijkstra's Algorithm
  • D. A* Search
Q. Which traversal method is guaranteed to visit all vertices in a connected graph?
  • A. BFS
  • B. DFS
  • C. Both BFS and DFS
  • D. Neither BFS nor DFS
Q. Which traversal method is more memory efficient for a sparse graph?
  • A. BFS
  • B. DFS
  • C. Both are equal
  • D. Neither
Q. Which traversal method is more memory efficient for deep graphs?
  • A. BFS
  • B. DFS
  • C. Both are equally efficient
  • D. Neither is efficient
Q. Which traversal method is more memory efficient for large graphs?
  • A. BFS
  • B. DFS
  • C. Both are equally efficient
  • D. Neither is efficient
Q. Which traversal method is more memory efficient for sparse graphs?
  • A. BFS
  • B. DFS
  • C. Both are equal
  • D. Neither is efficient
Q. Which traversal method is more suitable for searching deep trees?
  • A. BFS
  • B. DFS
  • C. Both are equally suitable
  • D. Neither
Q. Which traversal method is not suitable for binary search trees when you want to retrieve nodes in sorted order?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Level-order
Q. Which traversal method is not suitable for binary search trees when you want to delete nodes?
  • A. Inorder
  • B. Preorder
  • C. Postorder
  • D. Level order
Q. Which traversal method is typically used for finding connected components in an undirected graph?
  • A. BFS
  • B. DFS
  • C. Both BFS and DFS
  • D. None of the above
Q. Which traversal method is typically used for searching in a tree structure?
  • A. BFS
  • B. DFS
  • C. Both BFS and DFS
  • D. None of the above
Q. Which traversal method is typically used to find the shortest path in an unweighted graph?
  • A. Depth-First Search
  • B. Breadth-First Search
  • C. Dijkstra's Algorithm
  • D. A* Search
Q. Which traversal method is used to create a mirror image of a binary tree?
  • A. In-order
  • B. Post-order
  • C. Pre-order
  • D. Level-order
Q. Which traversal method is used to get a sorted output from a binary search tree?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Q. Which traversal method is used to get the nodes of a binary tree in non-decreasing order?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Q. Which traversal method is used to print the nodes of a binary tree level by level?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Level-order
Q. Which traversal method is used to retrieve nodes in sorted order from a binary search tree?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Q. Which traversal method is used to visit all nodes in a binary tree?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. All of the above
Q. Which traversal method of a binary tree can be used to retrieve nodes in non-decreasing order?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Q. Which traversal method of a binary tree is commonly used in expression evaluation?
  • A. In-order traversal
  • B. Pre-order traversal
  • C. Post-order traversal
  • D. Level-order traversal
Q. Which traversal method of a binary tree is commonly used to generate a sorted list of values?
  • A. Pre-order traversal
  • B. In-order traversal
  • C. Post-order traversal
  • D. Level-order traversal
Q. Which traversal method of a binary tree visits nodes in the order of left child, root, right child?
  • A. Pre-order
  • B. In-order
  • C. Post-order
  • D. Level-order
Q. Which traversal method of a binary tree will give the nodes in non-decreasing order?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Q. Which traversal method uses a queue data structure?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Level-order
Q. Which traversal method uses a queue for its implementation?
  • A. DFS
  • B. BFS
  • C. In-order
  • D. Pre-order
Q. Which traversal method uses a stack to explore nodes?
  • A. BFS
  • B. DFS
  • C. Dijkstra's Algorithm
  • D. Prim's Algorithm
Q. Which traversal method uses a stack to keep track of nodes?
  • A. Inorder
  • B. Postorder
  • C. Level order
  • D. Preorder
Q. Which traversal method visits all nodes of a binary tree in order?
  • A. Pre-order
  • B. In-order
  • C. Post-order
  • D. Level-order
Q. Which traversal method visits nodes in the order of left child, right child, root?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Level-order
Q. Which traversal method visits nodes in the order: left, root, right?
  • A. Pre-order
  • B. In-order
  • C. Post-order
  • D. Level-order
Showing 3181 to 3210 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