Q1:
2026: 31 May Shift 1
Computer Science
Searching
Easy
Computer Science
Binary search can only be applied to-
2026: 31 May Shift 1
Computer Science
Searching
Easy
Computer Science
Binary search can only be applied to-
2026: 31 May Shift 1
Computer Science
Searching
Medium
Computer Science
Arrange the following time complexities in increasing order(from low to high):
A. Bubble Sort (worst case)
B. Binary Search (worst case)
C. Linear Search (worst case)
D. Hashing (without collision)
2026: 31 May Shift 1
Computer Science
Searching
Easy
Computer Science
____ is a situation where two elements map to the same slot in the hash table.
2026: 31 May Shift 1
Computer Science
Searching
Easy
Computer Science
What is the time complexity of the binary search algorithm, if the target element is present at the exact middle of the list? Consider 'n' as number of elements and is odd.
2026: 29 May Shift 2
Computer Science
Searching
Easy
Computer Science
If the hash function is perfect, collisions will _____________occur.
2026: 29 May Shift 2
Computer Science
Searching
Easy
Computer Science
Given a list L=[5,6,75,85,95]
If we need to search for the element 85, then how many comparisons will it make to find the element using linear search?
2026: 29 May Shift 2
Computer Science
Searching
Easy
Computer Science
The average complexity of linear search and binary search are ___ and ____, respectively.
A. O(n)
B. O(n log n)
C. O(log n)
D. O(n*n)
2026: 29 May Shift 2
Computer Science
Searching
Easy
Computer Science
What is the time complexity of hashing (in absence of collision)?
2026: 29 May Shift 1
Computer Science
Searching
Medium
Computer Science
Consider a list [-4, 0, 2, 7, 8, 17, 19].
Apply binary search to find element -4. Determine the number of key comparisons required.
2026: 29 May Shift 1
Computer Science
Searching
Medium
Computer Science
Identify the correct order steps involved in search by using Hashing technique.
(A) An empty hash table is taken.
(B) Use the hash function, applied on the elements of a list and fill the hash table.
(C) Compare the element to search at that index with the key to declare whether the element is present in the list or not.
(D) Take a list with given elements.
2026: 29 May Shift 1
Computer Science
Searching
Easy
Computer Science
Given below is the Binary Search function to find an element in a list of elements in ascending order. Find the missing statement 1 and 2.
def binarySearch(list, key):
first = 0
last = len(list) - 1
while(first<=list):
mid=(first+last)//2
if(list[mid]= = key:
return mid
elif key > list[mid]:
___________ # Statement 1
elif key < list[mid]:
__________ # Statement 2
return -1
2026: 29 May Shift 1
Computer Science
Searching
Easy
Computer Science
Consider a list of 10 elements: L=[2, 63, 5, 47, 9, 11, 13, 17, 7, 23].
Determine the number of comparisons to search for a key 13 using linear search.
2026: 26 May Shift 1
Computer Science
Searching
Easy
Computer Science
Trying to insert an element into a hash table at an index already occupied, causes _______.
2026: 26 May Shift 1
Computer Science
Searching
Easy
Computer Science
What will be corresponding index position (List-II) of elements (List-I) in a empty hash table of size 10 using the remainder method?
| List-I | List-II |
|---|---|
| Element | Index Position |
| (A) 12 | (I) 6 |
| (B) 57 | (II) 1 |
| (C) 41 | (III) 2 |
| (D) 26 | (IV) 7 |
2026: 26 May Shift 1
Computer Science
Searching
Easy
Computer Science
The binary search makes use of the _________of elements in the list to quickly search a key.
2026: 26 May Shift 1
Computer Science
Searching
Easy
Computer Science
Consider a list of 11 elements:
7, 12,13, 18, 46, 24, 30, 32, 14, 43, 38.
Determine the number of comparisions linear search makes to search for key = 18.
2026: 24 May Shift 1
Computer Science
Searching
Easy
Computer Science
What happens even if a key is not present in the list during a linear search?
2026: 24 May Shift 1
Computer Science
Searching
Medium
Computer Science
Which of the following are the applications of binary search?
(A) Telephone Directory
(B) Finding the element with a minimum or maximum value in a sorted list
(C) Implementing routing tables
(D) Indexing in database
2026: 24 May Shift 1
Computer Science
Searching
Easy
Computer Science
If a linear search is performed on 10 elements, how many comparisons will be needed in worst case?
2026: 24 May Shift 1
Computer Science
Searching
Easy
Computer Science
___________ is a search technique that makes use of the ordering of elements in the list to quickly search for a key.
2026: 23 May Shift 2
Computer Science
Searching
Easy
Computer Science
Any algorithm that has a loop (usually from 1 to n) will have the time complexity as __________ and such algorithms are known as_________________.
2026: 23 May Shift 2
Computer Science
Searching
Easy
Computer Science
The situation where two or more elements are in the same position in the list is called as _________ in hashing.
2026: 23 May Shift 2
Computer Science
Searching
Easy
Computer Science
Which of the following is not the technique to calculate index in hashing?
2026: 23 May Shift 2
Computer Science
Searching
Easy
Computer Science
Find from the following condition that holds FALSE for binary search:
2026: 23 May Shift 2
Computer Science
Searching
Easy
Computer Science
Searching a dictionary or a telephone directory is an example of which searching technique?
2026: 23 May Shift 1
Computer Science
Searching
Easy
Computer Science
The worst case time complexity of finding an element using linear search is ______.
2026: 23 May Shift 1
Computer Science
Searching
Medium
Computer Science
Assume a list =[2, 4, 6, 8, 10, 12, 14]
How many comparisons are required to find element '4' in the list using Binary search?
2026: 23 May Shift 1
Computer Science
Searching
Easy
Computer Science
If every item of the list maps to a unique index in the hash table, the hash function is called a ____________ hash function.
2026: 23 May Shift 1
Computer Science
Searching
Easy
Computer Science
What is the worst-case scenario for a linear search in an array of 'n' elements?
2026: 21 May Shift 1
Computer Science
Searching
Easy
Computer Science
If every item of the list maps to a unique index in the hash table, the hash function is called ________.