Searching Algorithms: Binary Search - Implementations in C++ - Numerical Applications

Download Q&A
Q. In a binary search implementation, what happens if the target is less than the mid value?
  • A. Search the right half
  • B. Search the left half
  • C. Return mid
  • D. End the search
Q. Which of the following best describes the binary search algorithm?
  • A. Iterative only
  • B. Recursive only
  • C. Both iterative and recursive
  • D. None of the above
Q. Which of the following C++ functions can be used to implement binary search?
  • A. std::find
  • B. std::search
  • C. std::binary_search
  • D. std::linear_search
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely