Question
A sorted array contains 1000 elements. Using Binary Search, what is the maximum number of comparisons needed, in the worst case, to determine whether a target value is present in the array?
More Data Structure Questions
- Fibonacci heaps support which operation in O(1) amortized time?
- What is the primary purpose of a data structure?
- During insertion into an AVL tree, a node becomes unbalanced with a balance factor of -2, and the newly inserted node lies within the right subtree of that...
- In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
- Which of the following is a disadvantage of using arrays?
- Which of the following attacks can occur when a user is tricked into performing unintended actions on a trusted website without their knowledge?
- Which sorting algorithm has O(n log n) average case?
- Using Dijkstra's algorithm on a graph with edges A-B(4), A-C(1), C-B(2), B-D(1), C-D(5), what is the shortest distance from A to D?
- What is the primary purpose of an abstract class?
- What is the worst-case time complexity of the QuickSort algorithm?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)