G10 CS Binary Search

Quiz
•
Computers
•
12th Grade
•
Medium
Fritz Bansag
Used 12+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following cases a Binary Search algorithm is used?
To search an element in an unordered list?
To search an element in a list of few elements
To search an element in any ordered list with large number of elements
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a binary algorithm works?
Dividing the list into halves until the item is matched with one in the list.
Starts with the first element and checks the next element consecutively until a match is found.
Dividing the total number of elements and sorting them
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An array with 32 elements is input to a binary search algorithm. How many maximum number of comparisons are performed?
32
16
8
5
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the midpoint of the list is calculated in Binary Search algorithm?
midpoint = round ((first_element+last_element)/2)
midpoint =(lower_bound+upper_bound)/2
midpoint = round ((lower_bound+upper_bound)/2)
midpoint = round ((lower_bound+upper_bound))
None of the choices
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Under which of the following conditions a Binary Search algorithm terminates?
(a) Item_found=true
(b) lower_bound <= upper_bound
(c) lower_bound > upper_bound
a or c choices
b or c choices
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Complete the sentence:
The lower half of the list is discarded if the value at midpoint is …………………….. item searched in a Binary Search algorithm.
less than
greater than
equal to
not equal to
none
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Binary Search algorithm, the upper half of the list is discarded if the value at midpoint is greater than item searched.
TRUE
FALSE
None of them
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Sorts and searches

Quiz
•
1st - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)

Quiz
•
11th - 12th Grade
12 questions
Graph Paper Programming

Quiz
•
7th - 12th Grade
10 questions
Computational Thinking - AQA A Level Computer Science

Quiz
•
10th Grade - University
15 questions
Code.org - Unit 6 Review

Quiz
•
9th - 12th Grade
15 questions
Unit 6 Pre-Assessment - Algorithms

Quiz
•
11th - 12th Grade
9 questions
"Searching " in Python

Quiz
•
12th Grade
5 questions
Linear Search

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade