CUET Computer/IP: Computer ScienceSearching. Free, no login required.

Q1:

2026: 31 May Shift 1

Searching

Easy

Computer Science

Binary search can only be applied to-

Answer options
Option 1
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 1

Q2:

2026: 31 May Shift 1

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)

Answer options
Option 2
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 2

Q3:

2026: 31 May Shift 1

Searching

Easy

Computer Science

____ is a situation where two elements map to the same slot in the hash table.

Answer options
Option 2
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 3

Q4:

2026: 31 May Shift 1

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.

Answer options
Option 2
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 4

Q6:

2026: 29 May Shift 2

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?

Answer options
Option 3
Correct Answer
Explanation for 2026: 29 May Shift 2 CSE question 6

Q7:

2026: 29 May Shift 2

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)

Answer options
Option 4
Correct Answer
Explanation for 2026: 29 May Shift 2 CSE question 7

Q9:

2026: 29 May Shift 1

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.

Answer options
Option 3
Correct Answer
Explanation for 2026: 29 May Shift 1 CSE question 9

Q10:

2026: 29 May Shift 1

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.

Answer options

Q11:

2026: 29 May Shift 1

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

Answer options

Q12:

2026: 29 May Shift 1

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.

Answer options

Q13:

2026: 26 May Shift 1

Searching

Easy

Computer Science

Trying to insert an element into a hash table at an index already occupied, causes _______.

Answer options

Q14:

2026: 26 May Shift 1

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-IList-II
ElementIndex Position
(A) 12(I) 6
(B) 57(II) 1
(C) 41(III) 2
(D) 26(IV) 7
Answer options

Q15:

2026: 26 May Shift 1

Searching

Easy

Computer Science

The binary search makes use of the _________of elements in the list to quickly search a key.

Answer options

Q16:

2026: 26 May Shift 1

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.

Answer options

Q17:

2026: 24 May Shift 1

Searching

Easy

Computer Science

What happens even if a key is not present in the list during a linear search?

Answer options

Q18:

2026: 24 May Shift 1

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

Answer options

Q19:

2026: 24 May Shift 1

Searching

Easy

Computer Science

If a linear search is performed on 10 elements, how many comparisons will be needed in worst case?

Answer options

Q20:

2026: 24 May Shift 1

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.

Answer options

Q21:

2026: 23 May Shift 2

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_________________.

Answer options

Q22:

2026: 23 May Shift 2

Searching

Easy

Computer Science

The situation where two or more elements are in the same position in the list is called as _________ in hashing.

Answer options

Q23:

2026: 23 May Shift 2

Searching

Easy

Computer Science

Which of the following is not the technique to calculate index in hashing?

Answer options

Q24:

2026: 23 May Shift 2

Searching

Easy

Computer Science

Find from the following condition that holds FALSE for binary search:

Answer options

Q25:

2026: 23 May Shift 2

Searching

Easy

Computer Science

Searching a dictionary or a telephone directory is an example of which searching technique?

Answer options

Q26:

2026: 23 May Shift 1

Searching

Easy

Computer Science

The worst case time complexity of finding an element using linear search is ______.

Answer options

Q27:

2026: 23 May Shift 1

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?

Answer options

Q28:

2026: 23 May Shift 1

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.

Answer options

Q29:

2026: 23 May Shift 1

Searching

Easy

Computer Science

What is the worst-case scenario for a linear search in an array of 'n' elements?

Answer options

Q30:

2026: 21 May Shift 1

Searching

Easy

Computer Science

If every item of the list maps to a unique index in the hash table, the hash function is called ________.

Answer options